Пример #1
0
        /// <summary>
        /// Creates the data for the specified row.
        /// </summary>
        /// <param name="Row">The row.</param>
        internal Data Create(Row Row)
        {
            Data Data;

            switch (this.Index)
            {
            case 1:
            {
                Data = new LocaleData(Row, this);
                break;
            }

            case 2:
            {
                Data = new ResourceData(Row, this);
                break;
            }

            case 3:
            {
                Data = new EffectData(Row, this);
                break;
            }

            case 4:
            {
                Data = new ParticleEmitterData(Row, this);
                break;
            }

            case 5:
            {
                Data = new GlobalData(Row, this);
                break;
            }

            case 6:
            {
                Data = new QuestData(Row, this);
                break;
            }

            case 10:
            {
                Data = new WorldData(Row, this);
                break;
            }

            case 11:
            {
                Data = new HeroData(Row, this);
                break;
            }

            case 24:
            {
                Data = new TauntData(Row, this);
                break;
            }

            case 25:
            {
                Data = new DecoData(Row, this);
                break;
            }

            case 26:
            {
                Data = new VariableData(Row, this);
                break;
            }

            case 32:
            {
                Data = new EnergyPackageData(Row, this);
                break;
            }

            default:
            {
                Data = new Data(Row, this);
                break;
            }
            }

            return(Data);
        }
 internal override void Decode(Reader Reader)
 {
     this.EnergyPackage = Reader.ReadData <EnergyPackageData>();
     this.ReadHeader(Reader);
 }