示例#1
0
 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);
 }
示例#2
0
    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;
    }
示例#3
0
        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);
 }
示例#6
0
 public BeamApianSinglePeer(IBeamGameNet _gn, IBeamAppCore _client) : base(_gn, _client)
 {
     ApianGroup = new SinglePeerGroupManager(this);
 }
示例#7
0
 public void Setup(IBike ibike, IBeamAppCore backend)
 {
     bb      = ibike as BaseBike;
     appCore = backend;
     SetupImpl();
 }