コード例 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public vxNetClientEventPlayerStateUpdate(vxNetmsgUpdatePlayerEntityState updateMsg, float delay)
        {
            m_playerToUpdate = updateMsg.PlayerInfo;


            m_timeDelay = delay;
        }
コード例 #2
0
 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());
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public vxNetClientEventPlayerConnected(vxNetPlayerInfo player)
 {
     m_connectedPlayer = player;
 }
コード例 #6
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public vxNetClientEventPlayerStatusUpdate(vxNetPlayerInfo player)
 {
     m_playerToUpdate = player;
 }
コード例 #7
0
 /// <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;
 }
コード例 #9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public vxNetServerEventPlayerStateUpdate(vxNetPlayerInfo player)
 {
     m_playerToUpdate = player;
 }
コード例 #10
0
 /// <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);
 }
コード例 #11
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="playerinfo"></param>
 public vxNetmsgUpdatePlayerEntityState(vxNetPlayerInfo playerinfo)
 {
     this.PlayerInfo  = playerinfo;
     this.MessageTime = NetTime.Now;
 }
コード例 #12
0
 public void DecodeMsg(NetIncomingMessage im)
 {
     PlayerInfo = new vxNetPlayerInfo(
         im.ReadInt64(),
         im.ReadString(), vxEnumNetPlayerStatus.InServerLobbyNotReady);
 }
コード例 #13
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="playerinfo"></param>
 public vxNetmsgAddPlayer(vxNetPlayerInfo playerinfo)
 {
     this.PlayerInfo = playerinfo;
 }