Esempio n. 1
0
        public Object Clone( )
        {
            var clone = new usercmd_t();

            clone.Set(this);
            return(clone);
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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);
 }