public Scene(string Name) { this._ID = Guid.NewGuid().ToString(); this._Name = Name; this._BackColor = Color.FromArgb(40, 40, 40); this._Objects = new List <SceneObject>(); this._Events = new EventsPackage(EventHandlersPackage.NewSceneEventsPackage()); this._Data = new Dictionary <string, object>(); }
public EventHandlersPackage(EventHandlersPackage SEH, Scene ParentScene) { this.ID = SEH.ID; this._Events = new List <ScriptSceneObject>(); for (int i = 0; i < SEH._Events.Count; i++) { _Events.Add(new ScriptSceneObject(SEH._Events[i], ParentScene)); } }
public DrawnSceneObject(string Name, DrawObject Visual) : base(Name) { this.Type = SceneObjectType.DrawnSceneObject; this.Visual = Visual; this.Events = new EventsPackage(EventHandlersPackage.NewDrawnSceneObjectEventsPackage()); }
public DrawnSceneObject() : base() { this.Type = SceneObjectType.DrawnSceneObject; this.Visual = null; this.Events = new EventsPackage(EventHandlersPackage.NewDrawnSceneObjectEventsPackage()); }