public void ctor_AbstractPhysicalObject(World world, AbstractObjectType type, PhysicalObject realizedObject, WorldCoordinate pos, EntityID ID) { OriginalConstructor(world, type, realizedObject, pos, ID); if (MonklandSteamManager.isInGame) { owner = NetworkGameManager.playerID; dist = UnityEngine.Random.Range(int.MinValue, int.MaxValue); } }
public void ctor_AbstractPhysicalObject(World world, AbstractObjectType type, PhysicalObject realizedObject, WorldCoordinate pos, EntityID ID) { OriginalConstructor(world, type, realizedObject, pos, ID); if (ID.number != -1 && ID.number != 5 && ID.number != 0 && this.ID.number != 1 && this.ID.number != 2 && this.ID.number == 3) { while ((this.ID.number >= -1 && this.ID.number <= 15000)) { this.ID.number = UnityEngine.Random.Range(int.MinValue, int.MaxValue); } } if (ID.number == 0) { playerdist = UnityEngine.Random.Range(int.MinValue, int.MaxValue); } if (MonklandSteamManager.isInGame) { owner = NetworkGameManager.playerID; } }
public extern void OriginalConstructor(World world, AbstractObjectType type, PhysicalObject realizedObject, WorldCoordinate pos, EntityID ID);
public patch_AbstractPhysicalObject(World world, AbstractObjectType type, PhysicalObject realizedObject, WorldCoordinate pos, EntityID ID) : base(world, type, realizedObject, pos, ID) { }
public patch_AbstractDataPearl(World world, AbstractObjectType objType, PhysicalObject realizedObject, WorldCoordinate pos, EntityID ID, int originRoom, int placedObjectIndex, PlacedObject.ConsumableObjectData consumableData, DataPearl.AbstractDataPearl.DataPearlType dataPearlType) : base(world, objType, realizedObject, pos, ID, originRoom, placedObjectIndex, consumableData, dataPearlType) { }