/// <summary> /// �ڳ����е���Ϣ: /// SceneID/Walk/X/Y/ActionState /// </summary> /// <param name="writer"></param> public void WriteScene(IExternalWriter writer) { writer.WriteKey("SceneID"); writer.WriteUTF(SceneID); writer.WriteKey("Walk"); writer.WriteDouble(Point); writer.WriteKey("X"); writer.WriteInt(X); writer.WriteKey("Y"); writer.WriteInt(Y); writer.WriteKey("ActionState"); writer.WriteInt((int)AState); }
public virtual void WriteProperty(IExternalWriter writer) { writer.WriteKey("SuDu"); writer.WriteInt(SuDu); writer.WriteKey("BaoJi"); writer.WriteInt(BaoJi); writer.WriteKey("MingZhong"); writer.WriteInt(MingZhong); writer.WriteKey("ShanBi"); writer.WriteInt(ShanBi); writer.WriteKey("GongJi"); writer.WriteInt(GongJi); writer.WriteKey("MoFaGongJi"); writer.WriteInt(MoFaGongJi); writer.WriteKey("FangYu"); writer.WriteInt(FangYu); writer.WriteKey("MoFaFangYu"); writer.WriteInt(MoFaFangYu); writer.WriteKey("WuLiXiShou"); writer.WriteDouble(WuLiXiShou); writer.WriteKey("MoFaXiShou"); writer.WriteDouble(MoFaXiShou); //writer.WriteKey("ShengMing"); //MVPair.WritePair(writer, ShengMing, HP); //writer.WriteKey("MoFa"); //MVPair.WritePair(writer, MoFa, MP); }
/// <summary> /// 写金钱(Coin/Score) /// </summary> /// <param name="writer"></param> public void WriteFinance(IExternalWriter writer) { writer.WriteKey("Coin"); writer.WriteDouble((double)Coin); writer.WriteKey("Score"); writer.WriteDouble((double)Score); writer.WriteKey("Bond"); writer.WriteDouble((double)Bond); }