Beispiel #1
0
        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++;
            Name           = columnStrings[index++];
            Cost           = int.Parse(columnStrings[index++]);
            Type           = int.Parse(columnStrings[index++]);
            Material       = columnStrings[index++];
            Picture        = columnStrings[index++];
            Describe       = columnStrings[index++];
            Effect0        = columnStrings[index++];
            Target0        = int.Parse(columnStrings[index++]);
            Value0         = int.Parse(columnStrings[index++]);
            SourceActions0 = DataTableExtension.ParseInt32List(columnStrings[index++]);
            TargetActions0 = DataTableExtension.ParseInt32List(columnStrings[index++]);
            Effect1        = columnStrings[index++];
            Target1        = int.Parse(columnStrings[index++]);
            Value1         = int.Parse(columnStrings[index++]);
            SourceActions1 = DataTableExtension.ParseInt32List(columnStrings[index++]);
            TargetActions1 = DataTableExtension.ParseInt32List(columnStrings[index++]);

            GeneratePropertyArray();
            return(true);
        }
Beispiel #2
0
        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++;
            Name         = columnStrings[index++];
            HP           = int.Parse(columnStrings[index++]);
            MP           = int.Parse(columnStrings[index++]);
            Physical     = int.Parse(columnStrings[index++]);
            HandLimit    = int.Parse(columnStrings[index++]);
            DefaultCards = DataTableExtension.ParseInt32List(columnStrings[index++]);

            GeneratePropertyArray();
            return(true);
        }
Beispiel #3
0
        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++;
            Name        = columnStrings[index++];
            HpMin       = int.Parse(columnStrings[index++]);
            HpMax       = int.Parse(columnStrings[index++]);
            AtkMin      = int.Parse(columnStrings[index++]);
            AtkMax      = int.Parse(columnStrings[index++]);
            Intent      = DataTableExtension.ParseInt32List(columnStrings[index++]);
            IntentRatio = DataTableExtension.ParseInt32List(columnStrings[index++]);

            GeneratePropertyArray();
            return(true);
        }