Exemple #1
0
        public void Set(NetConnection udp, TcpConnection tcp, bool isTcp, string userId, byte team, byte worldId, byte selectedCharacter, int spawnIndex, int characterLevel)
        {
            mConnection   = udp;
            mTcpConnecton = tcp;
            IsTcp         = isTcp;
            UserId        = userId;
            mTeam         = team;
            mSpawnIndex   = spawnIndex;

            mReplicationManagerServer    = new ReplicationManagerServer();
            mDeliveryNotificationManager = new DeliveryNotificationManager(false, true);
            mIsLastMoveTimestampDirty    = false;
            mTimeToRespawn     = 0.0f;
            mWorldId           = worldId;
            mSelectedCharacter = selectedCharacter;
            mCharacterLevel    = characterLevel;


            // todo : 임시코드 데모 시연용
            //mSelectedCharacter = (byte)(inPlayerId % 2);

            UpdateLastPacketTime();

            mTimeOfLastSatePacket = 0.0f;

            IsStartedPlay = false;

            // 게임 종료후 일정 시간 여유를 두고 강제 종료 처리를 한다.
            mExpirePlayTime = World.Instance(worldId).GameMode.EndTime + GameMode.ExpiredTime;

            mCharacterState = null;

            Log.Information($"PlayerController set last_user_id:{UserId}, cur_user_id:{userId}, team{team}, session:{mSessionId.ToString()}, ip:{GetIpAddress()}, lv:{characterLevel}");
        }
Exemple #2
0
 public ReplicationManagerTransmissionData(ReplicationManagerServer inReplicationManagerServer)
 {
     mReplicationManagerServer = inReplicationManagerServer;
 }