예제 #1
0
 public Asset(int name, GetGobjectDelegate getgobjectcallback, Vector3 scale)
 {
     Name          = name;
     GetNewGobject = getgobjectcallback;
     Scale         = scale;
     Color         = Color.Gray;
 }
예제 #2
0
 public Asset(int name, GetGobjectDelegate getgobjectcallback, Vector3 scale)
 {
     Name = name;
     GetNewGobject = getgobjectcallback;
     Scale = scale;
     Color = Color.Gray;
 }
예제 #3
0
 /// <summary>
 /// Adds an asset with a default scale of 1
 /// </summary>
 /// <param name="name"></param>
 /// <param name="CreateCallback"></param>
 public void AddAsset(Enum e, GetGobjectDelegate CreateCallback)
 {
     AddAsset(e, CreateCallback, 1.0f);
 }
예제 #4
0
 /// <summary>
 /// Adds an asset with a scale of X = Y = Z = scale
 /// </summary>
 /// <param name="name"></param>
 /// <param name="CreateCallback"></param>
 /// <param name="scale"></param>
 public void AddAsset(Enum e, GetGobjectDelegate CreateCallback, float scale)
 {
     AddAsset(e, CreateCallback, new Vector3(scale, scale, scale));
 }
예제 #5
0
        /// <summary>
        /// Adds an asset
        /// </summary>
        /// <param name="name"></param>
        /// <param name="CreateCallback"></param>
        /// <param name="scale"></param>
        public void AddAsset(Enum e, GetGobjectDelegate CreateCallback, Vector3 scale)
        {
            int id = (int)Convert.ChangeType(e, e.GetTypeCode());

            AddAsset(new Asset(id, CreateCallback, scale));
        }
예제 #6
0
 /// <summary>
 /// Adds an asset with a default scale of 1
 /// </summary>
 /// <param name="name"></param>
 /// <param name="CreateCallback"></param>
 public void AddAsset(Enum e, GetGobjectDelegate CreateCallback)
 {
     AddAsset(e, CreateCallback, 1.0f);
 }
예제 #7
0
 /// <summary>
 /// Adds an asset with a scale of X = Y = Z = scale
 /// </summary>
 /// <param name="name"></param>
 /// <param name="CreateCallback"></param>
 /// <param name="scale"></param>
 public void AddAsset(Enum e, GetGobjectDelegate CreateCallback, float scale)
 {
     AddAsset(e, CreateCallback, new Vector3(scale, scale, scale));
 }
예제 #8
0
 /// <summary>
 /// Adds an asset
 /// </summary>
 /// <param name="name"></param>
 /// <param name="CreateCallback"></param>
 /// <param name="scale"></param>
 public void AddAsset(Enum e, GetGobjectDelegate CreateCallback, Vector3 scale)
 {
     int id = (int)Convert.ChangeType(e, e.GetTypeCode());
     AddAsset(new Asset(id, CreateCallback, scale));
 }