Example #1
0
        private void TransformNetworkEntity(Packet _packet)
        {
            int        id       = _packet.ReadInt();
            Vector3    position = _packet.ReadVector3();
            Quaternion rotation = _packet.ReadQuaternion();

            ClientNetworkEntity.TransformNetworkEntity(id, position, rotation, this);
        }
Example #2
0
        private void SpawnNetworkEntity(Packet _packet)
        {
            int        id         = _packet.ReadInt();
            string     entityType = _packet.ReadString();
            Vector3    position   = _packet.ReadVector3();
            Quaternion rotation   = _packet.ReadQuaternion();
            Vector3    scale      = _packet.ReadVector3();

            ClientNetworkEntity.SpawnNetworkEntity(id, entityType, position, rotation, scale);
        }
Example #3
0
        private void DestroyNetworkEntity(Packet _packet)
        {
            int id = _packet.ReadInt();

            ClientNetworkEntity.DestroyNetworkEntity(id);
        }