/// <summary> /// Special method, called when engine is ready to serve info about game object field offsets. /// </summary> static void InitFieldOffsets() { NativeFields.InitFieldOffsets(typeof(Critter)); NativeFields.InitFieldOffsets(typeof(Item)); NativeFields.InitFieldOffsets(typeof(Location)); NativeFields.InitFieldOffsets(typeof(Map)); NativeFields.InitFieldOffsets(typeof(NpcPlane)); NativeFields.InitFieldOffsets(typeof(ProtoItem)); NativeFields.InitFieldOffsets(typeof(Scenery)); GlobalProperties.Init(); }
static Global() { Time = new Time(); MapManager = new MapManager(); Randomizer = new Randomizer(); GlobalProperties = new GlobalProperties(); TimeEvents = new TimeEvents(); Logging = new Logging(); CritterManager = new CritterManager(); VarManager = new VarManager(); DialogManager = new DialogManager(); ItemManager = new ItemManager(); Math = new Math(); AnyData = new AnyData(); }