예제 #1
0
파일: ObjectBase.cs 프로젝트: zulis/Sandbox
 protected ObjectBase(ICore core)
 {
     Core = core;
     Scale = new VECTOR3D(1.0f, 1.0f, 1.0f);
     Selected = false;
     Visible = true;
     Renderable = true;
     core.AllObjects.Add(this);
     custom = new CustomCollection();
     ScriptEnabled = core.Settings.ScriptEnabled;
     Script = core.Settings.Script;
 }
 public CustomCollectionPropertyDescriptor(CustomCollection coll, int idx)
     : base("#" + idx.ToString(), null)
 {
     this.collection = coll;
     this.index = idx;
 }
예제 #3
0
 public CustomCollectionPropertyDescriptor(CustomCollection coll, int idx) :
     base("#" + idx.ToString(), null)
 {
     this.collection = coll;
     this.index      = idx;
 }
예제 #4
0
파일: ObjectBase.cs 프로젝트: zulis/Sandbox
 public void SetCustomCollection(CustomCollection custColl)
 {
     for (var i = 0; i < custColl.Count; i++ )
     {
         custom.Add(new Custom(custColl[i].Name, custColl[i].Value));
     }
 }