public override object Read(ES2Reader reader) { ActiveAttackSkillProgress data = new ActiveAttackSkillProgress(); Read(reader, data); return(data); }
public void addProgress(ActiveAttackSkillProgress progress) { atk = RAW_ATK + progress.Effect; hit = RAW_HIT + progress.Hit; delay = RAW_DELAY - progress.Delay; cost = RAW_COST - progress.Cost; }
public override void Write(object obj, ES2Writer writer) { ActiveAttackSkillProgress data = (ActiveAttackSkillProgress)obj; // Add your writer.Write calls here. writer.Write(data.Hit); writer.Write(data.Effect); writer.Write(data.Delay); writer.Write(data.Cost); }
public override void Read(ES2Reader reader, object c) { ActiveAttackSkillProgress data = (ActiveAttackSkillProgress)c; // Add your reader.Read calls here to read the data into the object. data.Hit = reader.Read <System.Int32>(); data.Effect = reader.Read <System.Int32>(); data.Delay = reader.Read <System.Single>(); data.Cost = reader.Read <System.Int32>(); }