public void CreatePlayerListener(CreatePlayerEvent createPlayerEvent) { var player = PlayerManager.Instance.FindPlayerByConnectionId(createPlayerEvent.hid); var message = WsMessageBuilder.CreateWsMessage("public", _terrainLayer); _eventBus.Post(message); }
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); }