Ejemplo n.º 1
0
        void Network.IStreamWriter.WriteToStream(Player player, Network.ByteOutStream stream)
        {
            stream.WriteByte(HeaderBytes.ActorStateStream);
            stream.WriteUShort(Id);
            stream.WriteByte(StateStreamer.Size);

            StateStreamer.Pack(stream);
        }
Ejemplo n.º 2
0
        internal void InternalSimulate()
        {
            if (HasStateStream && !IsMine)
            {
                StateStreamer.SetTransform(SimulationTime);
            }

            InvokeEvents();

            for (int i = 0; i < Behaviours.Length; ++i)
            {
                Behaviours[i].InternalSimulate();
            }
        }