Space Engineers
|
Base class for all session types (single, coop, mmo, sandbox) More...
Public Member Functions | |
T | GetComponent< T > () |
void | RegisterComponent (MySessionComponentBase component, MyUpdateOrder updateOrder, int priority) |
void | UnregisterComponent (MySessionComponentBase component) |
void | RegisterComponentsFromAssembly (Assembly assembly, bool modAssembly=false) |
void | AddComponentForUpdate (MyUpdateOrder updateOrder, MySessionComponentBase component) |
void | SetComponentUpdateOrder (MySessionComponentBase component, MyUpdateOrder order) |
Change the update order of a session component. More... | |
void | LoadObjectBuildersComponents (List< MyObjectBuilder_SessionComponent > objectBuilderData) |
void | RegisterEvents () |
void | LoadDataComponents () |
void | UnloadDataComponents (bool beforeLoadWorld=false) |
void | BeforeStartComponents () |
void | UpdateComponents () |
MyPromoteLevel | GetUserPromoteLevel (ulong steamId) |
Gets a remote player's promote level. More... | |
bool | IsUserScripter (ulong steamId) |
bool | IsUserModerator (ulong steamId) |
bool | IsUserSpaceMaster (ulong steamId) |
bool | IsUserAdmin (ulong steamId) |
Checks if a given player is an admin. More... | |
bool | IsUserOwner (ulong steamId) |
bool | CreativeToolsEnabled (ulong user) |
void | EnableCreativeTools (ulong user, bool value) |
bool | IsCopyPastingEnabledForUser (ulong user) |
bool | SetUserPromoteLevel (ulong steamId, MyPromoteLevel level) |
bool | CanPromoteUser (ulong steamId) |
bool | CanDemoteUser (ulong steamId) |
void | SetAsNotReady () |
bool | HasPlayerCreativeRights (ulong steamId) |
void | UnloadMultiplayer () |
void | Update (MyTimeSpan updateTime) |
Updates resource. More... | |
bool | IsPausable () |
void | HandleInput () |
void | Draw () |
MyCameraControllerEnum | GetCameraControllerEnum () |
void | SetCameraController (MyCameraControllerEnum cameraControllerEnum, IMyEntity cameraEntity=null, Vector3D?position=null) |
void | SetEntityCameraPosition (MyPlayer.PlayerId pid, IMyEntity cameraEntity) |
bool | IsCameraControlledObject () |
bool | IsCameraUserControlledSpectator () |
float | GetCameraTargetDistance () |
void | SetCameraTargetDistance (double distance) |
void | SaveControlledEntityCameraSettings (bool isFirstPerson) |
bool | Save (string customSaveName=null) |
bool | Save (out MySessionSnapshot snapshot, string customSaveName=null) |
void | SaveEnded () |
void | SaveDataComponents () |
MyObjectBuilder_World | GetWorld (bool includeEntities=true) |
MyObjectBuilder_Sector | GetSector (bool includeEntities=true) |
MyObjectBuilder_Checkpoint | GetCheckpoint (string saveName) |
Dictionary< string, byte[]> | GetVoxelMapsArray (bool includeChanged) |
void | GameOver () |
void | GameOver (MyStringId?customMessage) |
void | Unload () |
short | GetBlockTypeLimit (string blockType) |
Public Member Functions inherited from VRage.Game.ModAPI.IMySession | |
void | RegisterComponent (VRage.Game.Components.MySessionComponentBase component, VRage.Game.Components.MyUpdateOrder updateOrder, int priority) |
Static Public Member Functions | |
static bool | IsCompatibleVersion (MyObjectBuilder_Checkpoint checkpoint) |
static void | Start (string name, string description, string password, MyObjectBuilder_SessionSettings settings, List< MyObjectBuilder_Checkpoint.ModItem > mods, MyWorldGenerator.Args generationArgs) |
Initializes a new single player session and start new game with parameters More... | |
static void | LoadMission (string sessionPath, MyObjectBuilder_Checkpoint checkpoint, ulong checkpointSizeInBytes, bool persistentEditMode) |
static void | LoadMission (string sessionPath, MyObjectBuilder_Checkpoint checkpoint, ulong checkpointSizeInBytes, string name, string description) |
static void | Load (string sessionPath, MyObjectBuilder_Checkpoint checkpoint, ulong checkpointSizeInBytes) |
static void | SetSpectatorPositionFromServer (Vector3D position) |
static void | InitiateDump () |
Events | |
Action< IMyCameraController, IMyCameraController > | CameraAttachedToChanged |
static Action | OnLoading |
Called after session is created, but before it's loaded. MySession.Static.Statis is valid when raising OnLoading. More... | |
static Action | OnUnloading |
static Action | AfterLoading |
static Action | OnUnloaded |
Action | OnReady |
Action< MyObjectBuilder_Checkpoint > | OnSavingCheckpoint |
Events inherited from VRage.Game.ModAPI.IMySession | |
Action | OnSessionReady |
Action | OnSessionLoading |
Base class for all session types (single, coop, mmo, sandbox)
Definition at line 25 of file MySession.Components.cs.
|
inline |
Definition at line 282 of file MySession.Components.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 454 of file MySession.Components.cs.
|
inline |
Definition at line 606 of file MySession.cs.
|
inline |
Definition at line 598 of file MySession.cs.
|
inline |
Definition at line 504 of file MySession.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 1027 of file MySession.cs.
|
inline |
Definition at line 509 of file MySession.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 2459 of file MySession.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 2465 of file MySession.cs.
|
inline |
Definition at line 2719 of file MySession.cs.
|
inline |
Definition at line 1941 of file MySession.cs.
|
inline |
Definition at line 2117 of file MySession.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 2289 of file MySession.cs.
|
inline |
T | : | MySessionComponentBase |
Definition at line 195 of file MySession.Components.cs.
|
inline |
Definition at line 2263 of file MySession.cs.
|
inline |
Gets a remote player's promote level.
steamId |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 450 of file MySession.cs.
|
inline |
Definition at line 2422 of file MySession.cs.
|
inline |
Definition at line 2247 of file MySession.cs.
|
inline |
Definition at line 1019 of file MySession.cs.
|
inline |
Definition at line 620 of file MySession.cs.
|
inlinestatic |
Definition at line 2560 of file MySession.cs.
|
inline |
Definition at line 2103 of file MySession.cs.
|
inline |
Definition at line 2108 of file MySession.cs.
|
inlinestatic |
Definition at line 1039 of file MySession.cs.
|
inline |
Definition at line 544 of file MySession.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 991 of file MySession.cs.
|
inline |
Checks if a given player is an admin.
steamId |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 485 of file MySession.cs.
|
inline |
Definition at line 470 of file MySession.cs.
|
inline |
Definition at line 490 of file MySession.cs.
|
inline |
Definition at line 462 of file MySession.cs.
|
inline |
Definition at line 475 of file MySession.cs.
|
inlinestatic |
Definition at line 1246 of file MySession.cs.
|
inline |
Definition at line 365 of file MySession.Components.cs.
|
inlinestatic |
Definition at line 1224 of file MySession.cs.
|
inlinestatic |
Definition at line 1231 of file MySession.cs.
|
inline |
Definition at line 323 of file MySession.Components.cs.
|
inline |
Definition at line 202 of file MySession.Components.cs.
|
inline |
Definition at line 218 of file MySession.Components.cs.
|
inline |
Definition at line 354 of file MySession.Components.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 2143 of file MySession.cs.
|
inline |
Definition at line 2159 of file MySession.cs.
|
inline |
Definition at line 2127 of file MySession.cs.
|
inline |
Definition at line 2236 of file MySession.cs.
|
inline |
Definition at line 2221 of file MySession.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 614 of file MySession.cs.
|
inline |
Definition at line 1987 of file MySession.cs.
|
inline |
Definition at line 2122 of file MySession.cs.
|
inline |
Change the update order of a session component.
There is a proxy for this method in the session component itself.
component | The component to set the update order for |
order | The update order |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 299 of file MySession.Components.cs.
|
inline |
Definition at line 2079 of file MySession.cs.
|
inlinestatic |
Definition at line 1982 of file MySession.cs.
|
inline |
Definition at line 569 of file MySession.cs.
|
inlinestatic |
Initializes a new single player session and start new game with parameters
Definition at line 1051 of file MySession.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 2470 of file MySession.cs.
|
inline |
Definition at line 421 of file MySession.Components.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 758 of file MySession.cs.
|
inline |
Definition at line 212 of file MySession.Components.cs.
|
inline |
Updates resource.
Implements VRage.Game.ModAPI.IMySession.
Definition at line 842 of file MySession.cs.
|
inline |
Implements VRage.Game.ModAPI.IMySession.
Definition at line 470 of file MySession.Components.cs.
Dictionary<string, MyFixedPoint> Sandbox.Game.World.MySession.AmountMined = new Dictionary<string, MyFixedPoint>() |
Definition at line 265 of file MySession.cs.
List<Tuple<string, MyBlueprintItemInfo> > Sandbox.Game.World.MySession.BattleBlueprints |
Definition at line 218 of file MySession.cs.
Dictionary<long, MyChatHistory> Sandbox.Game.World.MySession.ChatHistory = new Dictionary<long, MyChatHistory>() |
Definition at line 243 of file MySession.cs.
GameSystems.MyChatSystem Sandbox.Game.World.MySession.ChatSystem = new GameSystems.MyChatSystem() |
Definition at line 245 of file MySession.cs.
List<MyFactionChatHistory> Sandbox.Game.World.MySession.FactionChatHistory = new List<MyFactionChatHistory>() |
Definition at line 246 of file MySession.cs.
readonly MyFactionCollection Sandbox.Game.World.MySession.Factions = new MyFactionCollection() |
Definition at line 229 of file MySession.cs.
MyChatHistory Sandbox.Game.World.MySession.GlobalChatHistory = new MyChatHistory(0) |
Definition at line 244 of file MySession.cs.
const int Sandbox.Game.World.MySession.MAX_DESCRIPTION_LENGTH = 8000 - 1 |
Definition at line 90 of file MySession.cs.
const int Sandbox.Game.World.MySession.MAX_NAME_LENGTH = 128 |
Definition at line 89 of file MySession.cs.
const int Sandbox.Game.World.MySession.MIN_NAME_LENGTH = 5 |
Definition at line 88 of file MySession.cs.
MyPerPlayerData Sandbox.Game.World.MySession.PerPlayerData = new MyPerPlayerData() |
Definition at line 231 of file MySession.cs.
MyPlayerCollection Sandbox.Game.World.MySession.Players = new MyPlayerCollection() |
Definition at line 230 of file MySession.cs.
Dictionary<ulong, MyPromoteLevel> Sandbox.Game.World.MySession.PromotedUsers = new Dictionary<ulong, MyPromoteLevel>() |
Definition at line 221 of file MySession.cs.
int Sandbox.Game.World.MySession.RequiresDX = 9 |
Definition at line 130 of file MySession.cs.
MyScenarioDefinition Sandbox.Game.World.MySession.Scenario |
Definition at line 222 of file MySession.cs.
MyScriptManager Sandbox.Game.World.MySession.ScriptManager |
Definition at line 210 of file MySession.cs.
bool Sandbox.Game.World.MySession.ServerSaving = false |
Definition at line 248 of file MySession.cs.
HashSet<string> Sandbox.Game.World.MySession.SessionComponentDisabled = new HashSet<string>() |
Definition at line 192 of file MySession.Components.cs.
HashSet<string> Sandbox.Game.World.MySession.SessionComponentEnabled = new HashSet<string>() |
Definition at line 189 of file MySession.Components.cs.
MyObjectBuilder_SessionSettings Sandbox.Game.World.MySession.Settings |
Definition at line 132 of file MySession.cs.
readonly MyToolBarCollection Sandbox.Game.World.MySession.Toolbars = new MyToolBarCollection() |
Definition at line 232 of file MySession.cs.
readonly MyVoxelMaps Sandbox.Game.World.MySession.VoxelMaps = new MyVoxelMaps() |
Definition at line 228 of file MySession.cs.
BoundingBoxD Sandbox.Game.World.MySession.WorldBoundaries |
Definition at line 223 of file MySession.cs.
ulong Sandbox.Game.World.MySession.WorldSizeInBytes = 0 |
Definition at line 382 of file MySession.cs.
|
getset |
Definition at line 556 of file MySession.cs.
|
get |
Definition at line 1684 of file MySession.cs.
|
get |
Definition at line 172 of file MySession.cs.
|
get |
Definition at line 171 of file MySession.cs.
|
get |
Definition at line 149 of file MySession.cs.
|
get |
Definition at line 134 of file MySession.cs.
|
get |
Definition at line 166 of file MySession.cs.
|
getset |
Definition at line 128 of file MySession.cs.
|
getset |
Definition at line 129 of file MySession.cs.
|
get |
Definition at line 350 of file MySession.cs.
|
get |
Definition at line 152 of file MySession.cs.
|
get |
Definition at line 417 of file MySession_ModAPI.cs.
|
get |
Definition at line 301 of file MySession.cs.
|
get |
Definition at line 147 of file MySession.cs.
|
get |
Definition at line 127 of file MySession.cs.
|
getset |
Definition at line 182 of file MySession.cs.
|
getset |
Definition at line 183 of file MySession.cs.
|
getset |
Definition at line 184 of file MySession.cs.
|
getset |
Definition at line 124 of file MySession.cs.
|
get |
Definition at line 153 of file MySession.cs.
|
getset |
Definition at line 118 of file MySession.cs.
|
get |
Definition at line 258 of file MySession.cs.
|
get |
Definition at line 155 of file MySession.cs.
|
get |
Definition at line 168 of file MySession.cs.
|
get |
Definition at line 158 of file MySession.cs.
|
get |
Definition at line 159 of file MySession.cs.
|
get |
Definition at line 154 of file MySession.cs.
|
get |
Definition at line 167 of file MySession.cs.
|
get |
Definition at line 212 of file MySession.cs.
|
get |
Definition at line 187 of file MySession.cs.
|
get |
Definition at line 156 of file MySession.cs.
|
get |
Definition at line 179 of file MySession.cs.
|
get |
Definition at line 199 of file MySession.cs.
|
get |
Definition at line 177 of file MySession.cs.
|
getset |
Definition at line 106 of file MySession.cs.
|
getset |
Definition at line 1161 of file MySession.cs.
|
get |
Definition at line 550 of file MySession.cs.
|
get |
Definition at line 385 of file MySession.cs.
|
get |
Definition at line 174 of file MySession.cs.
|
get |
Definition at line 175 of file MySession.cs.
|
get |
Checks if the local player has access to creative tools.
Definition at line 499 of file MySession.cs.
|
getset |
Definition at line 121 of file MySession.cs.
|
get |
Definition at line 169 of file MySession.cs.
|
get |
Definition at line 441 of file MySession.cs.
|
get |
Definition at line 145 of file MySession.cs.
|
getset |
Definition at line 336 of file MySession.cs.
|
get |
Definition at line 537 of file MySession.cs.
|
get |
Definition at line 431 of file MySession.cs.
|
get |
Definition at line 446 of file MySession.cs.
|
get |
Definition at line 214 of file MySession.cs.
|
get |
Definition at line 421 of file MySession.cs.
|
get |
Definition at line 996 of file MySession.cs.
|
get |
Definition at line 436 of file MySession.cs.
|
get |
Definition at line 238 of file MySession.cs.
|
get |
Definition at line 215 of file MySession.cs.
|
get |
Definition at line 309 of file MySession.cs.
|
get |
Definition at line 317 of file MySession.cs.
|
get |
Definition at line 280 of file MySession.cs.
|
get |
Definition at line 325 of file MySession.cs.
|
get |
Definition at line 162 of file MySession.cs.
|
get |
Definition at line 165 of file MySession.cs.
|
get |
Definition at line 161 of file MySession.cs.
|
get |
Definition at line 164 of file MySession.cs.
|
get |
Definition at line 160 of file MySession.cs.
|
getset |
Definition at line 220 of file MySession.cs.
|
getset |
Definition at line 2646 of file MySession.cs.
|
getset |
Definition at line 2647 of file MySession.cs.
|
getset |
Definition at line 2648 of file MySession.cs.
|
getset |
Definition at line 2649 of file MySession.cs.
|
getset |
Definition at line 123 of file MySession.cs.
|
getset |
Definition at line 268 of file MySession.cs.
|
get |
Definition at line 176 of file MySession.cs.
|
getset |
Definition at line 125 of file MySession.cs.
|
get |
Definition at line 216 of file MySession.cs.
|
getset |
Definition at line 267 of file MySession.cs.
|
getset |
Definition at line 407 of file MySession.cs.
|
get |
Definition at line 410 of file MySession.cs.
|
get |
Definition at line 389 of file MySession.cs.
|
get |
Definition at line 170 of file MySession.cs.
|
getset |
Definition at line 562 of file MySession.cs.
|
get |
Definition at line 157 of file MySession.cs.
|
get |
Definition at line 178 of file MySession.cs.
|
staticgetset |
Definition at line 102 of file MySession.cs.
|
get |
Definition at line 148 of file MySession.cs.
|
get |
Definition at line 226 of file MySession.cs.
|
get |
Definition at line 150 of file MySession.cs.
|
get |
Definition at line 2229 of file MySession.cs.
|
get |
Definition at line 263 of file MySession.cs.
|
get |
Definition at line 260 of file MySession.cs.
|
get |
Definition at line 261 of file MySession.cs.
|
get |
Definition at line 262 of file MySession.cs.
|
get |
Definition at line 293 of file MySession.cs.
|
getset |
Definition at line 273 of file MySession.cs.
|
getset |
Definition at line 272 of file MySession.cs.
|
getset |
Definition at line 271 of file MySession.cs.
|
get |
Definition at line 151 of file MySession.cs.
|
get |
Definition at line 173 of file MySession.cs.
|
get |
Definition at line 126 of file MySession.cs.
|
static |
Definition at line 399 of file MySession.cs.
Action<IMyCameraController, IMyCameraController> Sandbox.Game.World.MySession.CameraAttachedToChanged |
Definition at line 332 of file MySession.cs.
|
static |
Called after session is created, but before it's loaded. MySession.Static.Statis is valid when raising OnLoading.
Definition at line 395 of file MySession.cs.
Action Sandbox.Game.World.MySession.OnReady |
Definition at line 403 of file MySession.cs.
Action<MyObjectBuilder_Checkpoint> Sandbox.Game.World.MySession.OnSavingCheckpoint |
Definition at line 405 of file MySession.cs.
|
static |
Definition at line 401 of file MySession.cs.
|
static |
Definition at line 397 of file MySession.cs.