예제 #1
0
        public void setTimeOut(MatchMakingLobbyStartTimeEvent e, SelfUserInMatchMakingLobby user, [JoinByBattleLobby] SingleNode <BattleLobbyComponent> lobby)
        {
            this.cleanUpLobby(lobby.Entity);
            ClientMatchMakingLobbyStartTimeComponent component = new ClientMatchMakingLobbyStartTimeComponent {
                StartTime = e.StartTime
            };

            lobby.Entity.AddComponent(component);
        }
예제 #2
0
 public void SoftAdd(NodeAddedEvent e, SingleNode <MatchMakingLobbyStartTimeComponent> lobby)
 {
     if (!lobby.Entity.HasComponent <ClientMatchMakingLobbyStartTimeComponent>())
     {
         ClientMatchMakingLobbyStartTimeComponent component = new ClientMatchMakingLobbyStartTimeComponent {
             StartTime = lobby.component.StartTime
         };
         lobby.Entity.AddComponent(component);
     }
 }