public InfoWrapper(string a_Name, string a_Owner, gEInfoType a_Type, gEInfoCondType a_CndType) { bCAccessorPropertyObject Native = new bCAccessorPropertyObject(new gCInfo()); nat = Native.Class as gCInfo; nat.Container.Properties.addProperty("Name", "bCString", new bCString(a_Name)); nat.Container.Properties.addProperty("MainSortID", "long", 0); nat.Container.Properties.addProperty("SortID", "long", 0); nat.Container.Properties.addProperty("Owner", "bCString", new bCString(a_Owner)); nat.Container.Properties.addProperty("InfoGiven", "bool", false); nat.Container.Properties.addProperty("Parent", "bCString", new bCString()); nat.Container.Properties.addProperty("Quest", "bCString", new bCString()); nat.Container.Properties.addProperty("ConditionType", "bTPropertyContainer<enum gEInfoCondType>", a_CndType); nat.Container.Properties.addProperty("Type", "bTPropertyContainer<enum gEInfoType>", a_Type); nat.Container.Properties.addProperty("GoldCost", "long", 0); nat.Container.Properties.addProperty("LearnPointCost", "long", 0); nat.Container.Properties.addProperty("ClearChildren", "bool", false); nat.Container.Properties.addProperty("Permanent", "bool", false); nat.Container.Properties.addProperty("Folder", "bCString", new bCString()); nat.Container.Properties.addProperty("CurrentInfoCommandIndex", "int", -1); nat.Container.Properties.addProperty("InfoIsRunnig", "bool", false); nat.Container.Properties.addProperty("StartChapter", "long", -1); nat.Container.Properties.addProperty("EndChapter", "long", -1); m_pCommands = new List<InfoCommandWrapper>(); m_pConditions = new List<InfoCommandWrapper>(); }
public InfoWrapper(gCInfo I) { nat = I; Build(); }