public LevelData() { brushes = new Brush[0]; lights = new UFLevelStructure.Light[0]; ambSounds = new AmbSound[0]; events = new UFLevelStructure.Event[0]; spawnPoints = new SpawnPoint[0]; particleEmitters = new UFLevelStructure.ParticleEmitter[0]; pushRegions = new PushRegion[0]; decals = new Decal[0]; climbingRegions = new ClimbingRegion[0]; boltEmitters = new BoltEmitter[0]; targets = new UFTransform[0]; entities = new Entity[0]; items = new Item[0]; clutter = new Clutter[0]; triggers = new Trigger[0]; movingGeometry = new Brush[0]; movingGroups = new MovingGroup[0]; geoRegions = new GeoRegion[0]; }
public void Set(UFLevelStructure.Event e) { type = e.type; delay = Mathf.Max(0f, e.delay); bool1 = e.bool1; bool2 = e.bool1; int1 = e.int1; int2 = e.int2; float1 = e.float1; float2 = e.float2; string1 = e.string1; string2 = e.string2; links = e.links; color = e.color; if (GetEventTypeClass(type) == EventTypeClass.None) { Debug.LogWarning("Event " + name + " will have no effects since it is of unknown type: " + type); } }