Beispiel #1
0
                public InputMessage(uint startTick, List <InputFrame> frames, int id)
                {
                    StartTick   = new serialization.types.Uint32(startTick);
                    InputFrames = new InputFrameList(frames);
                    PlayerID    = new serialization.types.Int32(id);

                    InitSerializableMembers(StartTick, InputFrames, PlayerID);
                }
Beispiel #2
0
                public InputFrame(bool sprinting, Vector2 movement, uint tick)
                {
                    Sprinting = new serialization.types.Bool(sprinting);
                    Movement  = new serialization.types.Vector2(movement);
                    Tick      = new serialization.types.Uint32(tick);

                    InitSerializableMembers(Sprinting, Movement, Tick);
                }
Beispiel #3
0
                public InputMessage()
                {
                    StartTick   = new serialization.types.Uint32(0);
                    InputFrames = new InputFrameList(new List <InputFrame>());
                    PlayerID    = new serialization.types.Int32(0);

                    InitSerializableMembers(StartTick, InputFrames, PlayerID);
                }
Beispiel #4
0
                public InputFrame()
                {
                    Sprinting = new serialization.types.Bool(false);
                    Movement  = new serialization.types.Vector2(Vector2.zero);
                    Tick      = new serialization.types.Uint32(0);

                    InitSerializableMembers(Sprinting, Movement, Tick);
                }