/// <summary> /// Constructor. /// </summary> public vxNetClientEventPlayerStateUpdate(vxNetmsgUpdatePlayerEntityState updateMsg, float delay) { m_playerToUpdate = updateMsg.PlayerInfo; m_timeDelay = delay; }
public void DecodeMsg(NetIncomingMessage im) { PlayerInfo = new vxNetPlayerInfo( im.ReadInt64(), im.ReadString(), vxEnumNetPlayerStatus.None); string dummy = im.ReadString(); }
public void DecodeMsg(NetIncomingMessage im) { PlayerInfo = new vxNetPlayerInfo( im.ReadInt64(), im.ReadString(), (vxEnumNetPlayerStatus)im.ReadInt32()); }
/// <summary> /// Sets up a Serve List Dialog Item which holds information pertaining too a Discovered Server. /// </summary> /// <param name="vxEngine"></param> /// <param name="ServerName"></param> /// <param name="ServerAddress"></param> /// <param name="ServerPort"></param> /// <param name="Position"></param> /// <param name="buttonImage"></param> /// <param name="ElementIndex"></param> public vxServerLobbyPlayerItem(vxEngine vxEngine, vxNetPlayerInfo player, Vector2 Position, Texture2D buttonImage, int ElementIndex) : base(vxEngine, player.UserName, Position, buttonImage, ElementIndex) { Player = player; }
/// <summary> /// Constructor. /// </summary> public vxNetClientEventPlayerConnected(vxNetPlayerInfo player) { m_connectedPlayer = player; }
/// <summary> /// Constructor. /// </summary> public vxNetClientEventPlayerStatusUpdate(vxNetPlayerInfo player) { m_playerToUpdate = player; }
/// <summary> /// /// </summary> /// <param name="playerinfo"></param> public vxNetmsgRemovePlayer(vxNetPlayerInfo playerinfo) { this.PlayerInfo = playerinfo; }
/// <summary> /// Initialization Constructor to be used on Server Side. /// </summary> /// <param name="ServerName"></param> /// <param name="ServerIP"></param> /// <param name="ServerPort"></param> public vxNetmsgUpdatePlayerLobbyStatus(vxNetPlayerInfo playerinfo) { this.PlayerInfo = playerinfo; }
/// <summary> /// Constructor. /// </summary> public vxNetServerEventPlayerStateUpdate(vxNetPlayerInfo player) { m_playerToUpdate = player; }
/// <summary> /// Decoding Constructor to be used by client. /// </summary> /// <param name="im"></param> public vxNetmsgUpdatePlayerEntityState(NetIncomingMessage im) { PlayerInfo = new vxNetPlayerInfo(1, "any", vxEnumNetPlayerStatus.ReadyToPlay); this.DecodeMsg(im); }
/// <summary> /// /// </summary> /// <param name="playerinfo"></param> public vxNetmsgUpdatePlayerEntityState(vxNetPlayerInfo playerinfo) { this.PlayerInfo = playerinfo; this.MessageTime = NetTime.Now; }
public void DecodeMsg(NetIncomingMessage im) { PlayerInfo = new vxNetPlayerInfo( im.ReadInt64(), im.ReadString(), vxEnumNetPlayerStatus.InServerLobbyNotReady); }
/// <summary> /// /// </summary> /// <param name="playerinfo"></param> public vxNetmsgAddPlayer(vxNetPlayerInfo playerinfo) { this.PlayerInfo = playerinfo; }