public Object Clone( ) { var newItem = new entity_t(); newItem.Set(this); return(newItem); }
public static void AddEntity(entity_t ent) { if (r_numentities >= MAX_ENTITIES) { return; } r_entities[r_numentities++].Set(ent); }
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; }
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(); } }