Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // old enum that I had to cast as e.g., (byte)RFCs.SyncSpeed to get 10 as a byte
- public enum RFCs {
- // Plane.cs RFCs
- SyncSpeed = 10,
- UTurnLeft = 11,
- UTurnRight = 12,
- RollUpright = 13,
- UpdatePosition = 14,
- UpdateRotation = 15,
- SyncPitch = 16,
- }
- // new class that gives me the byte I wanted!
- public static class RFCs {
- // Plane.cs RFCs
- public const byte SyncSpeed = 10;
- public const byte UTurnLeft = 11;
- public const byte UTurnRight = 12;
- public const byte RollUpright = 13;
- public const byte UpdatePosition = 14;
- public const byte UpdateRotation = 15;
- public const byte SyncPitch = 16;
- }
Advertisement
Add Comment
Please, Sign In to add comment