Exemple #1
0
        private PartyGameStartEvent partyGameStartEventFromProps(ISFSObject props)
        {
            PartyGameStartEvent result = default(PartyGameStartEvent);

            result.owner      = props.GetLong("owner");
            result.sessionId  = props.GetInt("id");
            result.templateId = props.GetInt("template");
            result.players    = props.GetLongArray("players");
            return(result);
        }
        private void onPartyGameStart(GameServerEvent gameServerEvent, object data)
        {
            PartyGameStartEvent partyGameStartEvent = (PartyGameStartEvent)data;

            Service.Get <EventDispatcher>().DispatchEvent(new PartyGameServiceEvents.PartyGameStarted(partyGameStartEvent.owner, partyGameStartEvent.players, partyGameStartEvent.sessionId, partyGameStartEvent.templateId));
        }