Ejemplo n.º 1
0
    internal ServerEntityPositionAndOrientation Clone()
    {
        ServerEntityPositionAndOrientation ret = new ServerEntityPositionAndOrientation();

        ret.x       = x;
        ret.y       = y;
        ret.z       = z;
        ret.heading = heading;
        ret.pitch   = pitch;
        ret.stance  = stance;
        return(ret);
    }
Ejemplo n.º 2
0
    Packet_PositionAndOrientation ToNetworkEntityPosition(ServerPlatform platform, ServerEntityPositionAndOrientation position)
    {
        Packet_PositionAndOrientation p = new Packet_PositionAndOrientation();

        p.X       = platform.FloatToInt(position.x * 32);
        p.Y       = platform.FloatToInt(position.y * 32);
        p.Z       = platform.FloatToInt(position.z * 32);
        p.Heading = position.heading;
        p.Pitch   = position.pitch;
        p.Stance  = position.stance;
        return(p);
    }
Ejemplo n.º 3
0
 internal ServerEntityPositionAndOrientation Clone()
 {
     ServerEntityPositionAndOrientation ret = new ServerEntityPositionAndOrientation();
     ret.x = x;
     ret.y = y;
     ret.z = z;
     ret.heading = heading;
     ret.pitch = pitch;
     ret.stance = stance;
     return ret;
 }
Ejemplo n.º 4
0
 Packet_PositionAndOrientation ToNetworkEntityPosition(ServerPlatform platform, ServerEntityPositionAndOrientation position)
 {
     Packet_PositionAndOrientation p = new Packet_PositionAndOrientation();
     p.X = platform.FloatToInt(position.x * 32);
     p.Y = platform.FloatToInt(position.y * 32);
     p.Z = platform.FloatToInt(position.z * 32);
     p.Heading = position.heading;
     p.Pitch = position.pitch;
     p.Stance = position.stance;
     return p;
 }