public Object Clone( ) { var clone = new usercmd_t(); clone.Set(this); return(clone); }
public usercmd_t(usercmd_t from) { msec = from.msec; buttons = from.buttons; angles[0] = from.angles[0]; angles[1] = from.angles[1]; angles[2] = from.angles[2]; forwardmove = from.forwardmove; sidemove = from.sidemove; upmove = from.upmove; impulse = from.impulse; lightlevel = from.lightlevel; }
public virtual usercmd_t Set(usercmd_t from) { msec = from.msec; buttons = from.buttons; angles[0] = from.angles[0]; angles[1] = from.angles[1]; angles[2] = from.angles[2]; forwardmove = from.forwardmove; sidemove = from.sidemove; upmove = from.upmove; impulse = from.impulse; lightlevel = from.lightlevel; return(this); }