Beispiel #1
0
        void CreateZone(Vector3 pos)
        {
            ZoneView aZone = _zoneFactory.Create();

            aZone.SetCenterPosition(pos);
            _zones.Add(aZone);
        }
Beispiel #2
0
    public ZoneView CreateZone(Vector3 pos)
    {
        ZoneView aZone = _zoneFactory.Create();

        pos.z = 0;
        aZone.SetCenterPosition(pos);

        return(aZone);
    }
Beispiel #3
0
        public void ZoneLoadedEvent()
        {
            Zone zone = ZoneFactory.Create(1);

            zone.LoadedEvent += new LoadedEventHandler <LoadedEventArgs <IZone> >(DetectZoneEvent);
            zone.Load();
            bool found = zoneLoadedDetected;

            zoneLoadedDetected = false;
            Assert.AreEqual(true, found);
        }