public LogicData(CSVRow row, LogicDataTable table) { this.m_row = row; this.m_table = table; this.m_globalId = GlobalID.CreateGlobalID((int)table.GetTableIndex() + 1, table.GetItemCount()); this.m_tidIndex = -1; this.m_infoTidIndex = -1; this.m_iconSWFIndex = -1; this.m_iconExportNameIndex = -1; }
public LogicData GetItemById(int globalId) { int instanceId = GlobalID.GetInstanceID(globalId); if (instanceId < 0 || instanceId >= this.m_items.Size()) { Debugger.Warning("LogicDataTable::getItemById() - Instance id out of bounds! " + (instanceId + 1) + "/" + this.m_items.Size()); return(null); } return(this.m_items[instanceId]); }
public int GetInstanceID() { return(GlobalID.GetInstanceID(this.m_globalId)); }