public Attack(BinaryReader BR, string AttackPath, Dictionary <string, BaseSkillRequirement> DicRequirement, Dictionary <string, BaseEffect> DicEffect) { Animations = new AttackAnimations(); IsExternal = false; Init(BR, AttackPath, DicRequirement, DicEffect); }
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'); }
public AttackContext() { ContextName = "Any"; ParserValue = string.Empty; Weight = 0; AttackOriginType = ContextTypes.Any; AttackOriginCustomType = string.Empty; AttackTargetType = ContextTypes.Any; AttackTargetCustomType = string.Empty; Animations = new AttackAnimations(); }
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); }
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(); }