示例#1
0
 public static void PlayerToOm(NetOutgoingMessage om, AbsData d)
 {
     om.Write(d.alive);
     om.Write(d.GetXpos());
     om.Write(d.GetYpos());
     om.Write(d.GetZpos());
     om.Write((Int32)d.id);
     om.Write(d.xr);
     om.Write(d.yr);
     om.Write(d.model);
 }
示例#2
0
 public static void PlayerToOm(NetOutgoingMessage om, AbsData d)
 {
     om.Write(d.alive);
     om.Write(d.GetXpos());
     om.Write(d.GetYpos());
     om.Write(d.GetZpos());
     om.Write((Int32)d.id);
     om.Write(d.xr);
     om.Write(d.yr);
     om.Write(d.model);
 }
示例#3
0
 public static void PlayerLeft(NetIncomingMessage im, AbsData[] players)
 {
     Int32 id = im.ReadInt32();
     players[id] = null;
 }