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

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

            dict.Merge(true, ID.ToGDEDict(IDKey));
            dict.Merge(true, MaxHP.ToGDEDict(MaxHPKey));
            dict.Merge(true, MoveVec.ToGDEDict(MoveVecKey));
            dict.Merge(true, AlertRange.ToGDEDict(AlertRangeKey));
            dict.Merge(true, AtkRange.ToGDEDict(AtkRangeKey));
            dict.Merge(true, AtkInterval.ToGDEDict(AtkIntervalKey));
            dict.Merge(true, HurtProtect.ToGDEDict(HurtProtectKey));
            dict.Merge(true, Mass.ToGDEDict(MassKey));
            dict.Merge(true, PrefabPath.ToGDEDict(PrefabPathKey));
            return(dict);
        }
Example #2
0
        public override Dictionary <string, object> SaveToDict()
        {
            var dict = new Dictionary <string, object>();

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

            dict.Merge(true, ID.ToGDEDict(IDKey));
            dict.Merge(true, MagazineSize.ToGDEDict(MagazineSizeKey));
            dict.Merge(true, ConsumePerHit.ToGDEDict(ConsumePerHitKey));
            dict.Merge(true, DamageVal.ToGDEDict(DamageValKey));
            dict.Merge(true, AtkInterval.ToGDEDict(AtkIntervalKey));
            dict.Merge(true, ChargeTime.ToGDEDict(ChargeTimeKey));
            dict.Merge(true, ReloadTime.ToGDEDict(ReloadTimeKey));
            dict.Merge(true, Thrust.ToGDEDict(ThrustKey));
            dict.Merge(true, AlertRange.ToGDEDict(AlertRangeKey));
            dict.Merge(true, PrefabPath.ToGDEDict(PrefabPathKey));
            dict.Merge(true, SkinName.ToGDEDict(SkinNameKey));

            dict.Merge(true, OpaType.ToGDEDict(OpaTypeKey));
            dict.Merge(true, AniType.ToGDEDict(AniTypeKey));
            return(dict);
        }