Rise
The Vieneo Province
Loading...
Searching...
No Matches
ServerTypes.h File Reference
#include <Windows.h>
#include <string>
#include "../Rendering/ClientMath.h"
#include "MessageIdentifiers.h"
Include dependency graph for ServerTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  VECTOR2SHORT
struct  SVesselDC
struct  SWeaponPacket
struct  SVerbiage
struct  SDeviceMessage
struct  SSuperPacket
struct  SErrorPacket
struct  SInventory
struct  SPacketMenu
struct  SPacketBig
struct  SServerPacket
struct  SServerPacketNew
struct  SClientPacket
struct  SClientPacketNew
struct  SServerPacketChar
struct  SRenderVertex
struct  SRenderPoint
struct  SRenderRow
struct  SRenderGrid
struct  SAssayVertex
struct  SAssayGrid
struct  Slayout
struct  SRenderBuilding
struct  SObject
struct  SPlotData
struct  SScanData
struct  SDockingPorts
struct  SLoginData
struct  SSubscribeData
struct  Swaypoint
struct  Snode
struct  SInventoryHelper
struct  SPacketHuge
struct  SPlayerData

Macros

#define MAX_SCAN   64
#define MAX_SHIPINMEMORY   4096
#define MAX_BAYSPERSHIP   18
#define MAX_WEAPPERSHIP   5
#define MAX_AVIOPERSHIP   5
#define MAX_INVPERPLYR   7
#define MAX_INVPERSHIP   8
#define MAX_ONLINEPLAYERS   32
#define MAX_WEAPONS   64
#define MAX_ENGINES   3
#define MAX_TAB   8
#define MAX_TAB_CHARS   16
#define TRANSMIT_CHAT_SIZE   255
#define maxdockC   3
#define maxmenuC   6
#define EDPORTS   8
#define limiterC   0.5235987756f
#define rotlimitC   RiseMath::Tau

Enumerations

enum  PacketOrdering : unsigned char {
  ORDERING_NONE , ORDERING_PATCH , ORDERING_TERRAIN , ORDERING_AUDIO ,
  ORDERING_TELEMETRY , ORDERING_CHAT , ORDERING_ERRORS , ORDERING_WEATHER = 9
}
enum  : unsigned char {
  ID_USER_PACKET_ERROR = ID_USER_PACKET_ENUM + 1 , ID_USER_PACKET_CHAT , ID_USER_PACKET_TELEMETRY , ID_USER_PACKET_AVATAR ,
  ID_USER_PACKET_PATCH , ID_USER_PACKET_SUPER , ID_USER_PACKET_HELP , ID_USER_PACKET_LOGFILE ,
  ID_USER_PACKET_DEVICE , ID_USER_PACKET_LOGO
}
enum  Reference : char {
  REF_ENUMMIN = -4 , REF_APNMODE = -3 , REF_ONGROUND = -2 , REF_ACLMODE = -1 ,
  REF_INANOTHER = 0 , REF_BUILDING = 1 , REF_AUCTION = 2 , REF_PROXIMITY = 3 ,
  REF_IMPOUND = 4 , REF_WINDOWLESS = 5 , REF_RUSTYS = 6 , REF_HIDDEN = 7 ,
  REF_DOCKENUMCPOC = 8 , REF_DOCKTAC = 9 , REF_DOCKYSP = 10 , REF_ENUMMAX = 11
}
enum  VehicleType : unsigned char {
  C98 = 1 , DIHV = 2 , E10 = 3 , P13 = 4 ,
  A4 = 5 , C2 = 6 , T120 = 7 , E11 = 8 ,
  EVA_SUIT = 9 , ARJ_PAX = 10 , ARJ_UNUSED = 11 , ARJ_CARGOAFT = 12 ,
  ARJ_FUEL = 13 , ARJ_CARGOTOP = 14 , ARJ_MUNITIONS = 15 , ARJ_RESERVED16 = 16 ,
  ARJ_RESERVED17 = 17 , ARJ_RESERVED18 = 18 , ARJ_ENUM = 19 , Apartment = 20 ,
  C2A = 21 , T27 = 22 , BeishtKione = 23 , W6Manx = 24 ,
  SimBay = 25 , ControlTower = 26 , T19 = 27 , FloatingMan = 28 ,
  T121 = 29 , Hangar = 30 , Estate = 31
}
enum  CargoLoadType : unsigned char {
  None , CargoRare , CargoFood , CargoCommon ,
  CargoFuelOre , CargoGoods , CargoFab , CargoEnum ,
  Passengers , Colonists , Prisoners , PaxEnum ,
  Residential , Mining , Farmstead , Township ,
  Airfield , Refinery , Salvage , OutfitEnum ,
  WeaponLongarms = 30 , WeaponEnum = 31
}
enum  KitType : unsigned char {
  LockPick = 1 , Binoculars = 2 , ATM = 3 , NightVision = 4 ,
  E11Upgrade = 5 , Sunglasses = 6 , Fireworks = 7 , TemporaryRunwayLights = 8 ,
  ColonyUpLink = 9 , FirstAid = 10 , Backpack = 11 , CartonOfCigarettes = 12 ,
  Polaroid = 13 , RVR = 14 , ILS = 15 , CandyCane = 16 ,
  EVA_KIT = 17 , NexRad = 18
}
enum  PlotType : unsigned char {
  NotZoned = 0 , DeoisFinancial = 1 , UserEstate = 2 , UserMining = 3 ,
  DeoisIndustrial = 4 , DeoisCityCenter = 5 , DeoisTransit = 6 , NorthPole = 8 ,
  Chojeir = 9 , UserFarming = 10 , UserTownship = 11 , Arcridge = 12 ,
  DeoisPort = 13 , UserAirfield = 14 , UserSalvage = 15 , O4Ruin1 = 16 ,
  O4Ruin2 = 17 , O4Ruin3 = 18 , O4Ruin4 = 19 , UserRefinery = 20 ,
  PlotTypeEnum = 21 , DoNotRender = 255
}

Variables

const RiseMath::Vector3 northpoleK = RiseMath::Vector3(0.0f, 0.0f, 1.0f)
const RiseMath::Vector3 eastpoleI = RiseMath::Vector3(-1.0f, 0.0f, 0.0f)
const RiseMath::Vector3 meridianJ = RiseMath::Vector3(0.0f, -1.0f, 0.0f)
const RiseMath::Vector3 centerC = RiseMath::Vector3(0.0f, 0.0f, 0.0f)

Macro Definition Documentation

◆ EDPORTS

#define EDPORTS   8

Definition at line 209 of file ServerTypes.h.

◆ limiterC

#define limiterC   0.5235987756f

Definition at line 218 of file ServerTypes.h.

◆ MAX_AVIOPERSHIP

#define MAX_AVIOPERSHIP   5

Definition at line 196 of file ServerTypes.h.

◆ MAX_BAYSPERSHIP

#define MAX_BAYSPERSHIP   18

Definition at line 194 of file ServerTypes.h.

◆ MAX_ENGINES

#define MAX_ENGINES   3

Definition at line 201 of file ServerTypes.h.

◆ MAX_INVPERPLYR

#define MAX_INVPERPLYR   7

Definition at line 197 of file ServerTypes.h.

◆ MAX_INVPERSHIP

#define MAX_INVPERSHIP   8

Definition at line 198 of file ServerTypes.h.

◆ MAX_ONLINEPLAYERS

#define MAX_ONLINEPLAYERS   32

Definition at line 199 of file ServerTypes.h.

◆ MAX_SCAN

#define MAX_SCAN   64

Definition at line 192 of file ServerTypes.h.

◆ MAX_SHIPINMEMORY

#define MAX_SHIPINMEMORY   4096

Definition at line 193 of file ServerTypes.h.

◆ MAX_TAB

#define MAX_TAB   8

Definition at line 203 of file ServerTypes.h.

◆ MAX_TAB_CHARS

#define MAX_TAB_CHARS   16

Definition at line 204 of file ServerTypes.h.

◆ MAX_WEAPONS

#define MAX_WEAPONS   64

Definition at line 200 of file ServerTypes.h.

◆ MAX_WEAPPERSHIP

#define MAX_WEAPPERSHIP   5

Definition at line 195 of file ServerTypes.h.

◆ maxdockC

#define maxdockC   3

Definition at line 207 of file ServerTypes.h.

◆ maxmenuC

#define maxmenuC   6

Definition at line 208 of file ServerTypes.h.

◆ rotlimitC

#define rotlimitC   RiseMath::Tau

Definition at line 219 of file ServerTypes.h.

◆ TRANSMIT_CHAT_SIZE

#define TRANSMIT_CHAT_SIZE   255

Definition at line 205 of file ServerTypes.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : unsigned char
Enumerator
ID_USER_PACKET_ERROR 
ID_USER_PACKET_CHAT 
ID_USER_PACKET_TELEMETRY 
ID_USER_PACKET_AVATAR 
ID_USER_PACKET_PATCH 
ID_USER_PACKET_SUPER 
ID_USER_PACKET_HELP 
ID_USER_PACKET_LOGFILE 
ID_USER_PACKET_DEVICE 
ID_USER_PACKET_LOGO 

Definition at line 25 of file ServerTypes.h.

◆ CargoLoadType

enum CargoLoadType : unsigned char
Enumerator
None 
Todo
this has to be kept in sync with LoadType.cs
CargoRare 
CargoFood 
CargoCommon 
CargoFuelOre 
CargoGoods 
CargoFab 
CargoEnum 
Passengers 
Colonists 
Prisoners 
PaxEnum 
Residential 
Mining 
Farmstead 
Township 
Airfield 
Refinery 
Salvage 
OutfitEnum 
WeaponLongarms 
WeaponEnum 

Definition at line 94 of file ServerTypes.h.

◆ KitType

enum KitType : unsigned char
Enumerator
LockPick 
Binoculars 
ATM 
NightVision 
E11Upgrade 
Sunglasses 
Fireworks 
TemporaryRunwayLights 
ColonyUpLink 
FirstAid 
Backpack 
CartonOfCigarettes 
Polaroid 
RVR 
ILS 
CandyCane 
EVA_KIT 
NexRad 

Definition at line 123 of file ServerTypes.h.

◆ PacketOrdering

enum PacketOrdering : unsigned char
Enumerator
ORDERING_NONE 
ORDERING_PATCH 
ORDERING_TERRAIN 
ORDERING_AUDIO 
ORDERING_TELEMETRY 
ORDERING_CHAT 
ORDERING_ERRORS 
ORDERING_WEATHER 

Definition at line 10 of file ServerTypes.h.

◆ PlotType

enum PlotType : unsigned char
Enumerator
NotZoned 
DeoisFinancial 
UserEstate 
UserMining 
DeoisIndustrial 
DeoisCityCenter 
DeoisTransit 
NorthPole 
Chojeir 
UserFarming 
UserTownship 
Arcridge 
DeoisPort 
UserAirfield 
UserSalvage 
O4Ruin1 
O4Ruin2 
O4Ruin3 
O4Ruin4 
UserRefinery 
PlotTypeEnum 
DoNotRender 

Definition at line 145 of file ServerTypes.h.

◆ Reference

enum Reference : char
Enumerator
REF_ENUMMIN 
REF_APNMODE 
REF_ONGROUND 
REF_ACLMODE 
REF_INANOTHER 
REF_BUILDING 
REF_AUCTION 
REF_PROXIMITY 
REF_IMPOUND 
REF_WINDOWLESS 
REF_RUSTYS 
REF_HIDDEN 
REF_DOCKENUMCPOC 
REF_DOCKTAC 
REF_DOCKYSP 
REF_ENUMMAX 

Definition at line 39 of file ServerTypes.h.

◆ VehicleType

enum VehicleType : unsigned char
Enumerator
C98 
DIHV 
E10 
P13 
A4 
C2 
T120 
E11 
EVA_SUIT 
ARJ_PAX 
ARJ_UNUSED 
ARJ_CARGOAFT 
ARJ_FUEL 
ARJ_CARGOTOP 
ARJ_MUNITIONS 
ARJ_RESERVED16 
ARJ_RESERVED17 
ARJ_RESERVED18 
ARJ_ENUM 
Apartment 
C2A 
T27 
BeishtKione 
W6Manx 
SimBay 
ControlTower 
T19 
FloatingMan 
T121 
Hangar 
Estate 

Definition at line 59 of file ServerTypes.h.

Variable Documentation

◆ centerC

const RiseMath::Vector3 centerC = RiseMath::Vector3(0.0f, 0.0f, 0.0f)

Definition at line 215 of file ServerTypes.h.

◆ eastpoleI

const RiseMath::Vector3 eastpoleI = RiseMath::Vector3(-1.0f, 0.0f, 0.0f)

Definition at line 213 of file ServerTypes.h.

◆ meridianJ

const RiseMath::Vector3 meridianJ = RiseMath::Vector3(0.0f, -1.0f, 0.0f)

Definition at line 214 of file ServerTypes.h.

◆ northpoleK

const RiseMath::Vector3 northpoleK = RiseMath::Vector3(0.0f, 0.0f, 1.0f)

Definition at line 212 of file ServerTypes.h.