コード例 #1
0
        public void CreatePlayerListener(CreatePlayerEvent createPlayerEvent)
        {
            var player  = PlayerManager.Instance.FindPlayerByConnectionId(createPlayerEvent.hid);
            var message = WsMessageBuilder.CreateWsMessage("public", _terrainLayer);

            _eventBus.Post(message);
        }
コード例 #2
0
        public override void Process(Entity entity, Army army, GeoEntity geoEntity)
        {
            ArmyChangeEvent armyChangeEvent = new ArmyChangeEvent(army, geoEntity);
            WsMessage       wsMessage       = WsMessageBuilder.CreateWsMessage("public", armyChangeEvent);

            _jEventBus.Post(wsMessage);
        }