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); }
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); }
public static void PlayerLeft(NetIncomingMessage im, AbsData[] players) { Int32 id = im.ReadInt32(); players[id] = null; }