public static AbilityTarget CreateAbilityTarget(IBitStream stream) { AbilityTarget abilityTarget = new AbilityTarget(); abilityTarget.OnSerializeHelper(stream); return(abilityTarget); }
public static List <AbilityTarget> DeSerializeAbilityTargetList( IBitStream stream) { var abilityTargetList = new List <AbilityTarget>(); byte num1 = 0; stream.Serialize(ref num1); for (var index = 0; index < (int)num1; ++index) { short num2 = -1; short num3 = -1; var zero1 = Vector3.Zero; var zero2 = Vector3.Zero; stream.Serialize(ref num2); stream.Serialize(ref num3); stream.Serialize(ref zero1); stream.Serialize(ref zero2); var abilityTarget = new AbilityTarget(new GridPos( num2, num3, -1 // TODO: (int) Board.\u000E().\u000E((int) num2, (int) num3) ), zero2, zero1); abilityTargetList.Add(abilityTarget); } return(abilityTargetList); }
public static List <AbilityTarget> AbilityTargetList(AbilityTarget onlyTarget) { return(new List <AbilityTarget> { onlyTarget }); }