コード例 #1
0
    /// <summary>
    /// Deserialize the specified commandName and data.
    /// </summary>
    /// <param name='commandName'>
    /// Command name.
    /// </param>
    /// <param name='data'>
    /// Data.
    /// </param>
    public object[] Deserialize(byte[] data)
    {
        object[] ret = new object[1];

        DFNetwork.Helpers.Deserializer deserialize = new DFNetwork.Helpers.Deserializer(data);

        // Get the int
        ret[0] = deserialize.ReadNextInt();

        return(ret);
    }
コード例 #2
0
    /// <summary>
    /// Deserialize the specified commandName and data.
    /// </summary>
    /// <param name='commandName'>
    /// Command name.
    /// </param>
    /// <param name='data'>
    /// Data.
    /// </param>
    public object[] Deserialize(byte[] data)
    {
        object[] ret = new object[4];

        DFNetwork.Helpers.Deserializer deserialize = new DFNetwork.Helpers.Deserializer(data);

        // Get the shorts
        ret[0] = deserialize.ReadNextShort();

        // Get the vector3's
        ret[1] = deserialize.ReadNextVector3();

        // get the quaternions
        ret[2] = deserialize.ReadNextQuaternion();

        // Get the view ID int
        ret[3] = deserialize.ReadNextInt();

        return(ret);
    }