void CreateZone(Vector3 pos) { ZoneView aZone = _zoneFactory.Create(); aZone.SetCenterPosition(pos); _zones.Add(aZone); }
public ZoneView CreateZone(Vector3 pos) { ZoneView aZone = _zoneFactory.Create(); pos.z = 0; aZone.SetCenterPosition(pos); return(aZone); }
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); }