mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-05 12:07:25 -04:00
78 lines
1.7 KiB
C#
78 lines
1.7 KiB
C#
// ClassicalSharp copyright 2014-2016 UnknownShadow200 | Licensed under MIT
|
|
using System;
|
|
|
|
namespace ClassicalSharp.Network {
|
|
|
|
public enum Opcode {
|
|
Handshake = 0,
|
|
Ping = 1,
|
|
LevelInit = 2,
|
|
LevelDataChunk = 3,
|
|
LevelFinalise = 4,
|
|
SetBlockClient = 5,
|
|
SetBlock = 6,
|
|
AddEntity = 7,
|
|
EntityTeleport = 8,
|
|
RelPosAndOrientationUpdate = 9,
|
|
RelPosUpdate = 10,
|
|
OrientationUpdate = 11,
|
|
RemoveEntity = 12,
|
|
Message = 13,
|
|
Kick = 14,
|
|
SetPermission = 15,
|
|
|
|
CpeExtInfo = 16,
|
|
CpeExtEntry = 17,
|
|
CpeSetClickDistance = 18,
|
|
CpeCustomBlockSupportLevel = 19,
|
|
CpeHoldThis = 20,
|
|
CpeSetTextHotkey = 21,
|
|
CpeExtAddPlayerName = 22,
|
|
CpeExtAddEntity = 23,
|
|
CpeExtRemovePlayerName = 24,
|
|
CpeEnvColours = 25,
|
|
CpeMakeSelection = 26,
|
|
CpeRemoveSelection = 27,
|
|
CpeSetBlockPermission = 28,
|
|
CpeChangeModel = 29,
|
|
CpeEnvSetMapApperance = 30,
|
|
CpeEnvWeatherType = 31,
|
|
CpeHackControl = 32,
|
|
CpeExtAddEntity2 = 33,
|
|
CpePlayerClick = 34,
|
|
CpeDefineBlock = 35,
|
|
CpeRemoveBlockDefinition = 36,
|
|
CpeDefineBlockExt = 37,
|
|
CpeBulkBlockUpdate = 38,
|
|
CpeSetTextColor = 39,
|
|
CpeSetMapEnvUrl = 40,
|
|
CpeSetMapEnvProperty = 41,
|
|
CpeDefineModel = 42,
|
|
}
|
|
}
|
|
|
|
namespace ClassicalSharp {
|
|
|
|
public enum MessageType {
|
|
Normal = 0,
|
|
Status1 = 1,
|
|
Status2 = 2,
|
|
Status3 = 3,
|
|
BottomRight1 = 11,
|
|
BottomRight2 = 12,
|
|
BottomRight3 = 13,
|
|
Announcement = 100,
|
|
|
|
// client defined message ids
|
|
ClientStatus1 = 256,
|
|
ClientStatus2 = 257,
|
|
ClientStatus3 = 258,
|
|
ClientStatus4 = 259, // clipboard invalid characters
|
|
ClientStatus5 = 260, // tab list matching names
|
|
ClientStatus6 = 261, // no LongerMessages warning
|
|
ClientClock = 262,
|
|
}
|
|
|
|
public enum CpeBlockFace { XMax, XMin, YMax, YMin, ZMax, ZMin, }
|
|
}
|