Exemple #1
0
        public override Dictionary <string, object> SaveToDict()
        {
            var dict = new Dictionary <string, object>();

            dict.Add(GDMConstants.SchemaKey, "Monsters");

            dict.Merge(true, HealthPoints.ToGDEDict(HealthPointsKey));
            dict.Merge(true, BasicMeleeLow.ToGDEDict(BasicMeleeLowKey));
            dict.Merge(true, BasicDistanceLow.ToGDEDict(BasicDistanceLowKey));
            dict.Merge(true, BasicMagicLow.ToGDEDict(BasicMagicLowKey));
            dict.Merge(true, SpecialAbilityAdditive.ToGDEDict(SpecialAbilityAdditiveKey));
            dict.Merge(true, MonsterName.ToGDEDict(MonsterNameKey));
            dict.Merge(true, MonsterType.ToGDEDict(MonsterTypeKey));
            dict.Merge(true, MonsterDescription.ToGDEDict(MonsterDescriptionKey));
            dict.Merge(true, DifficultyLevel.ToGDEDict(DifficultyLevelKey));
            dict.Merge(true, SpecialAbility.ToGDEDict(SpecialAbilityKey));
            return(dict);
        }