public AGSGameData() { setup = new AGSGameSetupStruct(); save_guid = new char[0]; save_extension = new char[0]; save_folder = new char[0]; font_flags = new byte[0]; font_outlines = new byte[0]; sprite_flags = new byte[0]; inventoryItems = new AGSInventoryItem[0]; cursors = new AGSCursorInfo[0]; dictionary = new AGSDictionary(); globalScript = new AGSScript(); dialogScript = new AGSScript(); scriptModules = new AGSScript[0]; views = new AGSView[0]; characters = new AGSCharacter[0]; globalMessages = new string[0]; dialogs = new AGSDialog[0]; audioStorage = new AGSAudioStorage(); customPropertiesSchema = new AGSCustomProperiesSchema(); roomsDebugInfo = new AGSRoomDebugInfo[0]; globalvars = new AGSInteractionVariable[0]; views272 = new AGSView272[0]; oldDialogStrings = new List <string>(); guis = new AGSGUI[0]; buttons = new AGSGUIButton[0]; labels = new AGSGUILabel[0]; inventoryWindows = new AGSGUIInventoryWindow[0]; sliders = new AGSGUISlider[0]; textboxes = new AGSGUITextBox[0]; listboxes = new AGSGUIListBox[0]; }
private void ParseCustomProperties(BinaryReader r) { //TODO(adm244): investigate if it should be an array customPropertiesSchema = new AGSCustomProperiesSchema(); customPropertiesSchema.LoadFromStream(r); // parse characters properties for (int i = 0; i < setup.characters_count; ++i) { characters[i].properties = new AGSPropertyStorage(); characters[i].properties.ReadFromStream(r); } // parse inventory items properties for (int i = 0; i < setup.inventory_items_count; ++i) { inventoryItems[i].properties = new AGSPropertyStorage(); inventoryItems[i].properties.ReadFromStream(r); } }