public virtual void Setup(IBike beBike, IBeamApplication appl, IBeamAppCore core) { Logger = UniLogger.GetLogger("Frontend"); // use the FE logger appCore = core; bb = beBike; CreateControl(); control.Setup(appl, core, beBike); }
public void SetAppCore(IBeamAppCore core) { appCore = core; if (core == null) { return; } OnNewCoreState(null, appCore.CoreData); appCore.NewCoreStateEvt += OnNewCoreState; appCore.PlayersClearedEvt += OnPlayersClearedEvt; appCore.NewBikeEvt += OnNewBikeEvt; appCore.BikeRemovedEvt += OnBikeRemovedEvt; appCore.BikesClearedEvt += OnBikesClearedEvt; appCore.PlaceClaimedEvt += OnPlaceClaimedEvt; appCore.PlaceHitEvt += OnPlaceHitEvt; appCore.ReadyToPlayEvt += OnReadyToPlay; }
public void SetAppCore(IBeamAppCore back) { backend = back; if (back == null) { return; } OnNewCoreState(null, back.CoreData); // initialize back.NewCoreStateEvt += OnNewCoreState; back.PlayersClearedEvt += OnPlayersClearedEvt; back.NewBikeEvt += OnNewBikeEvt; back.BikeRemovedEvt += OnBikeRemovedEvt; back.BikesClearedEvt += OnBikesClearedEvt; back.PlaceClaimedEvt += OnPlaceClaimedEvt; back.PlaceHitEvt += OnPlaceHitEvt; back.ReadyToPlayEvt += OnReadyToPlay; }
public void SetAppCore(IBeamAppCore core) { appCore = core; if (core == null) { return; } OnNewCoreState(null, core.CoreState); // initialize core.NewCoreStateEvt += OnNewCoreState; core.PlayerJoinedEvt += OnPlayerJoinedEvt; core.PlayerMissingEvt += OnPlayerMissingEvt; core.PlayerReturnedEvt += OnPlayerReturnedEvt; core.PlayersClearedEvt += OnPlayersClearedEvt; core.NewBikeEvt += OnNewBikeEvt; core.BikeRemovedEvt += OnBikeRemovedEvt; core.BikesClearedEvt += OnBikesClearedEvt; core.PlaceClaimedEvt += OnPlaceClaimedEvt; core.PlaceHitEvt += OnPlaceHitEvt; core.ReadyToPlayEvt += OnReadyToPlay; }
public BeamApianCreatorServer(IBeamGameNet _gn, IBeamAppCore _client) : base(_gn, _client) { ApianGroup = new CreatorServerGroupManager(this); }
public BeamApianSinglePeer(IBeamGameNet _gn, IBeamAppCore _client) : base(_gn, _client) { ApianGroup = new SinglePeerGroupManager(this); }
public void Setup(IBike ibike, IBeamAppCore backend) { bb = ibike as BaseBike; appCore = backend; SetupImpl(); }