コード例 #1
0
        public static NetMessage Send(string userToTeleport, string userToTelportTo, OpperationList opperation, bool isAghost, Vector3 Coord)
        {
            NetMessage msg = new NetMessage
            {
                UserToTeleport   = userToTeleport,
                UserToTeleportTo = userToTelportTo,
                OpperationNumber = opperation,
                IsAghost         = isAghost,
                vectorX          = Coord.x,
                vectorY          = Coord.y,
                vectorZ          = Coord.z
            };

            Send(msg);
            return(msg);
        }
コード例 #2
0
    public static RequestAdminTeleport Send(string userId, string adminToken, string userToTeleport, string userToTelportTo, OpperationList opperation, bool isAghost, Vector3 Coord)
    {
        RequestAdminTeleport msg = new RequestAdminTeleport
        {
            Userid           = userId,
            AdminToken       = adminToken,
            UserToTeleport   = userToTeleport,
            UserToTeleportTo = userToTelportTo,
            OpperationNumber = opperation,
            IsAghost         = isAghost,
            vectorX          = Coord.x,
            vectorY          = Coord.y,
            vectorZ          = Coord.z
        };

        msg.Send();
        return(msg);
    }