Last active
May 25, 2019 19:45
-
-
Save Derulan/18e7d5182060d96e16192fad4d3cf69c to your computer and use it in GitHub Desktop.
Edited UnitMakerHelper for beginner modders.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Landfall.TABS | |
{ | |
// Token: 0x02000465 RID: 1125 | |
public class UMH | |
{ | |
// Token: 0x06001144 RID: 4420 | |
public static void NewUnitStats(string id, UnitBlueprint unit, List<GameObject> weapons, List<GameObject> combatMoves, List<GameObject> unitBases, List<GameObject> clothes, LandfallUnitDatabase database) | |
{ | |
if (unit.Entity.Name == "Example Man") | |
{ | |
unit.RightWeapon = weapons[8]; | |
unit.holdinigWithTwoHands = true; | |
unit.screamWhenAttack = true; | |
unit.forceCost = 100; | |
unit.objectsToSpawnAsChildren = new List<GameObject> | |
{ | |
combatMoves[12] | |
}.ToArray(); | |
UManager.SetClothes(new List<GameObject> | |
{ | |
clothes[164] | |
}, null, unit); | |
unit.vocalRef = database.GetUnitByGUID(new Guid("c0c16c86-6f99-440e-9279-7a4aa6c3cbd4")).vocalRef; | |
unit.deathRef = database.GetUnitByGUID(new Guid("02e63eb6-a1eb-4c34-80f7-e0c33a2bd974")).deathRef; | |
unit.health = 100f; | |
UManager.AddUnitToFaction(unit, database.GetUnitByGUID(new Guid("c0c16c86-6f99-440e-9279-7a4aa6c3cbd4")).Entity.SpriteIcon, unit.Entity.Name, 8); | |
} | |
} | |
// Token: 0x06001145 RID: 4421 RVA: 0x000922F4 File Offset: 0x000904F4 | |
public static void SetupCustomUnits() | |
{ | |
UManager.CreateNewUnit("Example Man", "eb2ab05a-aad8-49bd-85a5-bb7662eb5618"); | |
} | |
// Token: 0x06001146 RID: 4422 RVA: 0x000385D5 File Offset: 0x000367D5 | |
public static void EditUnitCombatMove(string id, GameObject move, UnitBlueprint unit, GameObject unitObject, LandfallUnitDatabase database) | |
{ | |
} | |
// Token: 0x06001147 RID: 4423 RVA: 0x000431D1 File Offset: 0x000413D1 | |
public static UnitBlueprint EditCrowUnit(UnitBlueprint unit, string id, string parentId, UnitBlueprint parentUnit, LandfallUnitDatabase database) | |
{ | |
return unit; | |
} | |
// Token: 0x06001148 RID: 4424 RVA: 0x0003CE1B File Offset: 0x0003B01B | |
public static UnitBlueprint EditProjectileObjectType(GameObject obj, string parentId, UnitBlueprint parentUnit, LandfallUnitDatabase database) | |
{ | |
return null; | |
} | |
// Token: 0x06001149 RID: 4425 RVA: 0x000431D4 File Offset: 0x000413D4 | |
public static int EditProjectileObjectTypeToObject(GameObject obj, string parentId, UnitBlueprint parentUnit, LandfallUnitDatabase database) | |
{ | |
return -1; | |
} | |
// Token: 0x0600114A RID: 4426 RVA: 0x0009236C File Offset: 0x0009056C | |
public static void EditUnitWeapon(string id, GameObject weapon, UnitBlueprint unit, HoldingHandler.HandType handType, LandfallUnitDatabase database) | |
{ | |
} | |
// Token: 0x0600114B RID: 4427 RVA: 0x000385D5 File Offset: 0x000367D5 | |
public static void EditProjectileStats(GameObject projectile, UnitBlueprint parentUnit, LandfallUnitDatabase database) | |
{ | |
} | |
// Token: 0x0600114C RID: 4428 RVA: 0x000385D5 File Offset: 0x000367D5 | |
public static void EventsAfterSpawn(GameObject unitObject, UnitBlueprint unit, string id, Team team) | |
{ | |
} | |
// Token: 0x0600114D RID: 4429 RVA: 0x000385D5 File Offset: 0x000367D5 | |
public static void EditObjectToSpawnStats(GameObject obj, UnitBlueprint parentUnit, LandfallUnitDatabase database) | |
{ | |
} | |
// Token: 0x0600114E RID: 4430 RVA: 0x000385D5 File Offset: 0x000367D5 | |
public static void EditUnitClothes(GameObject cloth, PropItemData data, Unit unitObject, int index) | |
{ | |
} | |
public static void CreateNewStuff() | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit to Fern for UnitMakerHelper code.