public override bool ParseDataRow(string dataRowString, object userData) { string[] columnStrings = dataRowString.Split(DataTableExtension.DataSplitSeparators); for (int i = 0; i < columnStrings.Length; i++) { columnStrings[i] = columnStrings[i].Trim(DataTableExtension.DataTrimSeparators); } int index = 0; index++; m_Id = int.Parse(columnStrings[index++]); index++; NameId = columnStrings[index++]; DescriptionId = columnStrings[index++]; SceneId = int.Parse(columnStrings[index++]); ResourceGroupName = columnStrings[index++]; InitEnergy = int.Parse(columnStrings[index++]); PlayerPosition = DataTableExtension.ParseVector3(columnStrings[index++]); PlayerQuaternion = DataTableExtension.ParseVector3(columnStrings[index++]); WaveIds = DataTableExtension.ParseInt32Array(columnStrings[index++]); AllowTowers = DataTableExtension.ParseInt32Array(columnStrings[index++]); GeneratePropertyArray(); return(true); }
public override bool ParseDataRow(string dataRowString, object userData) { string[] columnStrings = dataRowString.Split(DataTableExtension.DataSplitSeparators); for (int i = 0; i < columnStrings.Length; i++) { columnStrings[i] = columnStrings[i].Trim(DataTableExtension.DataTrimSeparators); } int index = 0; index++; m_Id = int.Parse(columnStrings[index++]); index++; NameId = columnStrings[index++]; Icon = columnStrings[index++]; PreviewEntityId = int.Parse(columnStrings[index++]); EntityId = int.Parse(columnStrings[index++]); ProjectileEntityId = int.Parse(columnStrings[index++]); ProjectileType = columnStrings[index++]; IsMultiAttack = bool.Parse(columnStrings[index++]); MaxHP = float.Parse(columnStrings[index++]); Dimensions = DataTableExtension.ParseInt32Array(columnStrings[index++]); Type = columnStrings[index++]; Levels = DataTableExtension.ParseInt32Array(columnStrings[index++]); GeneratePropertyArray(); return(true); }
public override bool ParseDataRow(string dataRowString, object userData) { string[] columnStrings = dataRowString.Split(DataTableExtension.DataSplitSeparators); for (int i = 0; i < columnStrings.Length; i++) { columnStrings[i] = columnStrings[i].Trim(DataTableExtension.DataTrimSeparators); } int index = 0; index++; m_Id = int.Parse(columnStrings[index++]); index++; FinishWaitTIme = float.Parse(columnStrings[index++]); WaveElements = DataTableExtension.ParseInt32Array(columnStrings[index++]); GeneratePropertyArray(); return(true); }