コード例 #1
0
        public void Parse(ICsvParser parser)
        {
            Version          = parser.GetInt('v');
            SkillId          = parser.GetInt();
            Price            = parser.GetInt();
            DefaultVehicleId = parser.GetInt();
            ResetSkills      = parser.GetInt();
            ResetInventory   = parser.GetBool();
            InventoryMutator[] mutators = parser.GetInstances <InventoryMutator>(16);
            CashAdjustment = parser.GetInt();
            Name           = parser.GetString();
            Category       = parser.GetString();
            Logic          = parser.GetString();
            Description    = parser.GetString();
            BlobName       = parser.GetString();
            BlobsToLoad.Add(BlobName);
            BlobId = parser.GetString();

            while (!parser.AtEnd)
            {
                parser.Skip();
            }

            InventoryMutators.AddRange(mutators);
        }