예제 #1
0
        public Attack(BinaryReader BR, string AttackPath, Dictionary <string, BaseSkillRequirement> DicRequirement, Dictionary <string, BaseEffect> DicEffect)
        {
            Animations = new AttackAnimations();
            IsExternal = false;

            Init(BR, AttackPath, DicRequirement, DicEffect);
        }
예제 #2
0
 public Attack()
 {
     Animations          = new AttackAnimations();
     DicTerrainAttribute = new Dictionary <string, char>();
     DicTerrainAttribute.Add("Land", 'A');
     DicTerrainAttribute.Add("Air", 'A');
     DicTerrainAttribute.Add("Sea", 'A');
     DicTerrainAttribute.Add("Space", 'A');
 }
예제 #3
0
        public AttackContext()
        {
            ContextName = "Any";
            ParserValue = string.Empty;
            Weight      = 0;

            AttackOriginType       = ContextTypes.Any;
            AttackOriginCustomType = string.Empty;
            AttackTargetType       = ContextTypes.Any;
            AttackTargetCustomType = string.Empty;
            Animations             = new AttackAnimations();
        }
예제 #4
0
        public AttackContext(BinaryReader BR)
        {
            ContextName = BR.ReadString();
            ParserValue = BR.ReadString();
            Weight      = BR.ReadInt32();

            AttackOriginType       = (ContextTypes)BR.ReadByte();
            AttackOriginCustomType = BR.ReadString();
            AttackTargetType       = (ContextTypes)BR.ReadByte();
            AttackTargetCustomType = BR.ReadString();

            Animations = new AttackAnimations();
            Animations.Load(BR);
        }
예제 #5
0
        public Attack(string AttackPath, Dictionary <string, BaseSkillRequirement> DicRequirement, Dictionary <string, BaseEffect> DicEffect)
        {
            Animations = new AttackAnimations();
            IsExternal = true;

            FileStream   FS = new FileStream("Content/Attacks/" + AttackPath + ".pew", FileMode.Open, FileAccess.Read);
            BinaryReader BR = new BinaryReader(FS, Encoding.UTF8);

            BR.BaseStream.Seek(0, SeekOrigin.Begin);

            Init(BR, AttackPath, DicRequirement, DicEffect);

            FS.Close();
            BR.Close();
        }