Esempio n. 1
0
 public void EnterRoom(long mapUnitId, Room room)
 {
     this.mapUnitId = mapUnitId;
     this.roomID    = room.Id;
     this.mapAppId  = IdGenerater.GetAppId(room.Id);
     Room           = room;
     SetClientState(PlayerStateData.Types.StateType.EnterRoom);
 }
        public ActorMessageSender Get(long actorId)
        {
            if (actorId == 0)
            {
                throw new Exception($"actor id is 0");
            }
            IPEndPoint         ipEndPoint         = StartConfigComponent.Instance.GetInnerAddress(IdGenerater.GetAppId(actorId));
            ActorMessageSender actorMessageSender = new ActorMessageSender(actorId, ipEndPoint);

            return(actorMessageSender);
        }