예제 #1
0
        public Object Clone( )
        {
            var newItem = new entity_t();

            newItem.Set(this);
            return(newItem);
        }
예제 #2
0
파일: V.cs 프로젝트: optimus-code/Q2Sharp
 public static void AddEntity(entity_t ent)
 {
     if (r_numentities >= MAX_ENTITIES)
     {
         return;
     }
     r_entities[r_numentities++].Set(ent);
 }
예제 #3
0
 public virtual void Set(entity_t src)
 {
     this.model = src.model;
     Math3D.VectorCopy(src.angles, this.angles);
     Math3D.VectorCopy(src.origin, this.origin);
     this.frame = src.frame;
     Math3D.VectorCopy(src.oldorigin, this.oldorigin);
     this.oldframe   = src.oldframe;
     this.backlerp   = src.backlerp;
     this.skinnum    = src.skinnum;
     this.lightstyle = src.lightstyle;
     this.alpha      = src.alpha;
     this.skin       = src.skin;
     this.flags      = src.flags;
 }
예제 #4
0
파일: V.cs 프로젝트: optimus-code/Q2Sharp
 static V( )
 {
     for (var i = 0; i < r_dlights.Length; i++)
     {
         r_dlights[i] = new dlight_t();
     }
     for (var i = 0; i < r_entities.Length; i++)
     {
         r_entities[i] = new entity_t();
     }
     for (var i = 0; i < r_lightstyles.Length; i++)
     {
         r_lightstyles[i] = new lightstyle_t();
     }
 }