コード例 #1
0
 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>();
 }
コード例 #2
0
ファイル: Events.cs プロジェクト: JammedGame/StartItJam
 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));
     }
 }
コード例 #3
0
 public DrawnSceneObject(string Name, DrawObject Visual) : base(Name)
 {
     this.Type   = SceneObjectType.DrawnSceneObject;
     this.Visual = Visual;
     this.Events = new EventsPackage(EventHandlersPackage.NewDrawnSceneObjectEventsPackage());
 }
コード例 #4
0
 public DrawnSceneObject() : base()
 {
     this.Type   = SceneObjectType.DrawnSceneObject;
     this.Visual = null;
     this.Events = new EventsPackage(EventHandlersPackage.NewDrawnSceneObjectEventsPackage());
 }