Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Properties | Events | List of all members
Sandbox.Game.World.MySession Class Reference

Base class for all session types (single, coop, mmo, sandbox) More...

Inheritance diagram for Sandbox.Game.World.MySession:
VRage.Game.ModAPI.IMySession VRage.Game.ModAPI.IMySession

Public Member Functions

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 ()
 

Public Attributes

HashSet< string > SessionComponentEnabled = new HashSet<string>()
 
HashSet< string > SessionComponentDisabled = new HashSet<string>()
 
const int MIN_NAME_LENGTH = 5
 
const int MAX_NAME_LENGTH = 128
 
const int MAX_DESCRIPTION_LENGTH = 8000 - 1
 
int RequiresDX = 9
 
MyObjectBuilder_SessionSettings Settings
 
MyScriptManager ScriptManager
 
List< Tuple< string, MyBlueprintItemInfo > > BattleBlueprints
 
Dictionary< ulong, MyPromoteLevelPromotedUsers = new Dictionary<ulong, MyPromoteLevel>()
 
MyScenarioDefinition Scenario
 
BoundingBoxD WorldBoundaries
 
readonly MyVoxelMaps VoxelMaps = new MyVoxelMaps()
 
readonly MyFactionCollection Factions = new MyFactionCollection()
 
MyPlayerCollection Players = new MyPlayerCollection()
 
MyPerPlayerData PerPlayerData = new MyPerPlayerData()
 
readonly MyToolBarCollection Toolbars = new MyToolBarCollection()
 
Dictionary< long, MyChatHistoryChatHistory = new Dictionary<long, MyChatHistory>()
 
MyChatHistory GlobalChatHistory = new MyChatHistory(0)
 
GameSystems.MyChatSystem ChatSystem = new GameSystems.MyChatSystem()
 
List< MyFactionChatHistoryFactionChatHistory = new List<MyFactionChatHistory>()
 
bool ServerSaving = false
 
Dictionary< string, MyFixedPointAmountMined = new Dictionary<string, MyFixedPoint>()
 
ulong WorldSizeInBytes = 0
 

Properties

static MySession Static [get, set]
 
DateTime GameDateTime [get, set]
 
TimeSpan ElapsedGameTime [get, set]
 
DateTime InGameTime [get, set]
 
string Name [get, set]
 
string Description [get, set]
 
string Password [get, set]
 
ulong WorkshopId [get]
 
string CurrentPath [get]
 
string Briefing [get, set]
 
string BriefingVideo [get, set]
 
uint AutoSaveInMinutes [get]
 
bool IsAdminMenuEnabled [get]
 
bool CreativeMode [get]
 
bool SurvivalMode [get]
 
bool AutoHealing [get]
 
bool ThrusterDamage [get]
 
bool WeaponsEnabled [get]
 
bool CargoShipsEnabled [get]
 
bool DestructibleBlocks [get]
 
bool EnableIngameScripts [get]
 
bool Enable3RdPersonView [get]
 
bool EnableToolShake [get]
 
bool ShowPlayerNamesOnHud [get]
 
bool EnableConvertToStation [get]
 
bool EnableFlora [get]
 
short MaxPlayers [get]
 
short MaxFloatingObjects [get]
 
short MaxBackupSaves [get]
 
int MaxGridSize [get]
 
int MaxBlocksPerPlayer [get]
 
Dictionary< string, short > BlockTypeLimits [get]
 
bool EnableRemoteBlockRemoval [get]
 
bool EnableBlockLimits [get]
 
float InventoryMultiplier [get]
 
float RefinerySpeedMultiplier [get]
 
float AssemblerSpeedMultiplier [get]
 
float AssemblerEfficiencyMultiplier [get]
 
float WelderSpeedMultiplier [get]
 
float GrinderSpeedMultiplier [get]
 
float HackSpeedMultiplier [get]
 
MyOnlineModeEnum OnlineMode [get]
 
MyEnvironmentHostilityEnum EnvironmentHostility [get]
 
bool StartInRespawnScreen [get]
 
bool EnableVoxelDestruction [get]
 
string CustomLoadingScreenImage [get, set]
 
string CustomLoadingScreenText [get, set]
 
string CustomSkybox [get, set]
 
bool EnableSpiders [get]
 
bool EnableWolfs [get]
 
bool EnableScripterRole [get]
 
bool IsScenario [get]
 
bool LoadedAsMission [get]
 
bool PersistentEditMode [get]
 
List< MyObjectBuilder_Checkpoint.ModItemMods [get, set]
 
MySyncLayer SyncLayer [get]
 
Dictionary< long, MyLaserAntennaLaserAntennas [get]
 
TimeSpan ElapsedPlayTime [get]
 
TimeSpan TimeOnFoot [get]
 
TimeSpan TimeOnJetpack [get]
 
TimeSpan TimeOnSmallShip [get]
 
TimeSpan TimeOnBigShip [get]
 
float PositiveIntegrityTotal [get, set]
 
float NegativeIntegrityTotal [get, set]
 
ulong VoxelHandVolumeChanged [get, set]
 
uint TotalDamageDealt [get, set]
 
uint TotalBlocksCreated [get, set]
 
MyPlayer LocalHumanPlayer [get]
 
MyEntity TopMostControlledEntity [get]
 
Entities.IMyControllableEntity ControlledEntity [get]
 
MyCharacter LocalCharacter [get]
 
long LocalCharacterEntityId [get]
 
long LocalPlayerId [get]
 
bool IsCameraAwaitingEntity [get, set]
 
IMyCameraController CameraController [get]
 
int GameplayFrameCounter [get]
 
bool Ready [get]
 
MyEnvironmentHostilityEnum PreviousEnvironmentHostility [get, set]
 
MyPromoteLevel PromoteLevel [get]
 
bool IsScripter [get]
 
bool IsModerator [get]
 
bool IsSpaceMaster [get]
 
bool IsAdministrator [get]
 
bool IsOwner [get]
 
bool HasCreativeRights [get]
 Checks if the local player has access to creative tools. More...
 
bool IsCopyPastingEnabled [get]
 
MyGameFocusManager GameFocusManager [get]
 
AdminSettingsEnum AdminSettings [get, set]
 
Dictionary< ulong, AdminSettingsEnumRemoteAdminSettings [get, set]
 
bool IsServer [get]
 
MyGameDefinition GameDefinition [get, set]
 
int AppVersionFromSave [get]
 
string ThumbPath [get]
 
bool MultiplayerAlive [get, set]
 
bool MultiplayerDirect [get, set]
 
double MultiplayerLastMsg [get, set]
 
MyTimeSpan MultiplayerPing [get, set]
 
IMyConfig Config [get]
 
- Properties inherited from VRage.Game.ModAPI.IMySession
float AssemblerEfficiencyMultiplier [get]
 
float AssemblerSpeedMultiplier [get]
 
bool AutoHealing [get]
 
uint AutoSaveInMinutes [get]
 
IMyCameraController CameraController [get]
 
bool CargoShipsEnabled [get]
 
bool ClientCanSave [get]
 
bool CreativeMode [get]
 
string CurrentPath [get]
 
string Description [get, set]
 
IMyCamera Camera [get]
 
IMyPlayer LocalHumanPlayer [get]
 
IMyConfig Config [get]
 Obtaining values from config is slow and can allocate memory! Do it only when necessary. More...
 
TimeSpan ElapsedPlayTime [get]
 
bool EnableCopyPaste [get]
 
MyEnvironmentHostilityEnum EnvironmentHostility [get]
 
DateTime GameDateTime [get, set]
 
float GrinderSpeedMultiplier [get]
 
float HackSpeedMultiplier [get]
 
float InventoryMultiplier [get]
 
bool IsCameraAwaitingEntity [get, set]
 
List< MyObjectBuilder_Checkpoint.ModItemMods [get, set]
 
bool IsServer [get]
 
short MaxFloatingObjects [get]
 
short MaxBackupSaves [get]
 
short MaxPlayers [get]
 
bool MultiplayerAlive [get, set]
 
bool MultiplayerDirect [get, set]
 
double MultiplayerLastMsg [get, set]
 
string Name [get, set]
 
float NegativeIntegrityTotal [get, set]
 
MyOnlineModeEnum OnlineMode [get]
 
string Password [get, set]
 
float PositiveIntegrityTotal [get, set]
 
float RefinerySpeedMultiplier [get]
 
bool ShowPlayerNamesOnHud [get]
 
bool SurvivalMode [get]
 
bool ThrusterDamage [get]
 
string ThumbPath [get]
 
TimeSpan TimeOnBigShip [get]
 
TimeSpan TimeOnFoot [get]
 
TimeSpan TimeOnJetpack [get]
 
TimeSpan TimeOnSmallShip [get]
 
bool WeaponsEnabled [get]
 
float WelderSpeedMultiplier [get]
 
ulong WorkshopId [get]
 
IMyVoxelMaps VoxelMaps [get]
 
IMyPlayer Player [get]
 
IMyControllableEntity ControlledObject [get]
 
MyObjectBuilder_SessionSettings SessionSettings [get]
 
IMyFactionCollection Factions [get]
 
IMyDamageSystem DamageSystem [get]
 
IMyGpsCollection GPS [get]
 
BoundingBoxD WorldBoundaries [get]
 
MyPromoteLevel PromoteLevel [get]
 Gets the local player's promote level. More...
 
bool HasCreativeRights [get]
 Checks if the local player is an admin or is promoted to space master (or higher). More...
 
bool HasAdminPrivileges [get]
 

Events

Action< IMyCameraController, IMyCameraControllerCameraAttachedToChanged
 
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_CheckpointOnSavingCheckpoint
 
- Events inherited from VRage.Game.ModAPI.IMySession
Action OnSessionReady
 
Action OnSessionLoading
 

Detailed Description

Base class for all session types (single, coop, mmo, sandbox)

Definition at line 25 of file MySession.Components.cs.

Member Function Documentation

void Sandbox.Game.World.MySession.AddComponentForUpdate ( MyUpdateOrder  updateOrder,
MySessionComponentBase  component 
)
inline

Definition at line 282 of file MySession.Components.cs.

void Sandbox.Game.World.MySession.BeforeStartComponents ( )
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 454 of file MySession.Components.cs.

bool Sandbox.Game.World.MySession.CanDemoteUser ( ulong  steamId)
inline

Definition at line 606 of file MySession.cs.

bool Sandbox.Game.World.MySession.CanPromoteUser ( ulong  steamId)
inline

Definition at line 598 of file MySession.cs.

bool Sandbox.Game.World.MySession.CreativeToolsEnabled ( ulong  user)
inline

Definition at line 504 of file MySession.cs.

void Sandbox.Game.World.MySession.Draw ( )
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 1027 of file MySession.cs.

void Sandbox.Game.World.MySession.EnableCreativeTools ( ulong  user,
bool  value 
)
inline

Definition at line 509 of file MySession.cs.

void Sandbox.Game.World.MySession.GameOver ( )
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 2459 of file MySession.cs.

void Sandbox.Game.World.MySession.GameOver ( MyStringId customMessage)
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 2465 of file MySession.cs.

short Sandbox.Game.World.MySession.GetBlockTypeLimit ( string  blockType)
inline

Definition at line 2719 of file MySession.cs.

MyCameraControllerEnum Sandbox.Game.World.MySession.GetCameraControllerEnum ( )
inline

Definition at line 1941 of file MySession.cs.

float Sandbox.Game.World.MySession.GetCameraTargetDistance ( )
inline

Definition at line 2117 of file MySession.cs.

MyObjectBuilder_Checkpoint Sandbox.Game.World.MySession.GetCheckpoint ( string  saveName)
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 2289 of file MySession.cs.

T Sandbox.Game.World.MySession.GetComponent< T > ( )
inline
Type Constraints
T :MySessionComponentBase 

Definition at line 195 of file MySession.Components.cs.

MyObjectBuilder_Sector Sandbox.Game.World.MySession.GetSector ( bool  includeEntities = true)
inline

Definition at line 2263 of file MySession.cs.

MyPromoteLevel Sandbox.Game.World.MySession.GetUserPromoteLevel ( ulong  steamId)
inline

Gets a remote player's promote level.

Parameters
steamId
Returns

Implements VRage.Game.ModAPI.IMySession.

Definition at line 450 of file MySession.cs.

Dictionary<string, byte[]> Sandbox.Game.World.MySession.GetVoxelMapsArray ( bool  includeChanged)
inline

Definition at line 2422 of file MySession.cs.

MyObjectBuilder_World Sandbox.Game.World.MySession.GetWorld ( bool  includeEntities = true)
inline

Definition at line 2247 of file MySession.cs.

void Sandbox.Game.World.MySession.HandleInput ( )
inline

Definition at line 1019 of file MySession.cs.

bool Sandbox.Game.World.MySession.HasPlayerCreativeRights ( ulong  steamId)
inline

Definition at line 620 of file MySession.cs.

static void Sandbox.Game.World.MySession.InitiateDump ( )
inlinestatic

Definition at line 2560 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsCameraControlledObject ( )
inline

Definition at line 2103 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsCameraUserControlledSpectator ( )
inline

Definition at line 2108 of file MySession.cs.

static bool Sandbox.Game.World.MySession.IsCompatibleVersion ( MyObjectBuilder_Checkpoint  checkpoint)
inlinestatic

Definition at line 1039 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsCopyPastingEnabledForUser ( ulong  user)
inline

Definition at line 544 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsPausable ( )
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 991 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsUserAdmin ( ulong  steamId)
inline

Checks if a given player is an admin.

Parameters
steamId
Returns

Implements VRage.Game.ModAPI.IMySession.

Definition at line 485 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsUserModerator ( ulong  steamId)
inline

Definition at line 470 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsUserOwner ( ulong  steamId)
inline

Definition at line 490 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsUserScripter ( ulong  steamId)
inline

Definition at line 462 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsUserSpaceMaster ( ulong  steamId)
inline

Definition at line 475 of file MySession.cs.

static void Sandbox.Game.World.MySession.Load ( string  sessionPath,
MyObjectBuilder_Checkpoint  checkpoint,
ulong  checkpointSizeInBytes 
)
inlinestatic

Definition at line 1246 of file MySession.cs.

void Sandbox.Game.World.MySession.LoadDataComponents ( )
inline

Definition at line 365 of file MySession.Components.cs.

static void Sandbox.Game.World.MySession.LoadMission ( string  sessionPath,
MyObjectBuilder_Checkpoint  checkpoint,
ulong  checkpointSizeInBytes,
bool  persistentEditMode 
)
inlinestatic

Definition at line 1224 of file MySession.cs.

static void Sandbox.Game.World.MySession.LoadMission ( string  sessionPath,
MyObjectBuilder_Checkpoint  checkpoint,
ulong  checkpointSizeInBytes,
string  name,
string  description 
)
inlinestatic

Definition at line 1231 of file MySession.cs.

void Sandbox.Game.World.MySession.LoadObjectBuildersComponents ( List< MyObjectBuilder_SessionComponent objectBuilderData)
inline

Definition at line 323 of file MySession.Components.cs.

void Sandbox.Game.World.MySession.RegisterComponent ( MySessionComponentBase  component,
MyUpdateOrder  updateOrder,
int  priority 
)
inline

Definition at line 202 of file MySession.Components.cs.

void Sandbox.Game.World.MySession.RegisterComponentsFromAssembly ( Assembly  assembly,
bool  modAssembly = false 
)
inline

Definition at line 218 of file MySession.Components.cs.

void Sandbox.Game.World.MySession.RegisterEvents ( )
inline

Definition at line 354 of file MySession.Components.cs.

bool Sandbox.Game.World.MySession.Save ( string  customSaveName = null)
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 2143 of file MySession.cs.

bool Sandbox.Game.World.MySession.Save ( out MySessionSnapshot  snapshot,
string  customSaveName = null 
)
inline

Definition at line 2159 of file MySession.cs.

void Sandbox.Game.World.MySession.SaveControlledEntityCameraSettings ( bool  isFirstPerson)
inline

Definition at line 2127 of file MySession.cs.

void Sandbox.Game.World.MySession.SaveDataComponents ( )
inline

Definition at line 2236 of file MySession.cs.

void Sandbox.Game.World.MySession.SaveEnded ( )
inline

Definition at line 2221 of file MySession.cs.

void Sandbox.Game.World.MySession.SetAsNotReady ( )
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 614 of file MySession.cs.

void Sandbox.Game.World.MySession.SetCameraController ( MyCameraControllerEnum  cameraControllerEnum,
IMyEntity  cameraEntity = null,
Vector3D position = null 
)
inline

Definition at line 1987 of file MySession.cs.

void Sandbox.Game.World.MySession.SetCameraTargetDistance ( double  distance)
inline

Definition at line 2122 of file MySession.cs.

void Sandbox.Game.World.MySession.SetComponentUpdateOrder ( MySessionComponentBase  component,
MyUpdateOrder  order 
)
inline

Change the update order of a session component.

There is a proxy for this method in the session component itself.

Parameters
componentThe component to set the update order for
orderThe update order

Implements VRage.Game.ModAPI.IMySession.

Definition at line 299 of file MySession.Components.cs.

void Sandbox.Game.World.MySession.SetEntityCameraPosition ( MyPlayer.PlayerId  pid,
IMyEntity  cameraEntity 
)
inline

Definition at line 2079 of file MySession.cs.

static void Sandbox.Game.World.MySession.SetSpectatorPositionFromServer ( Vector3D  position)
inlinestatic

Definition at line 1982 of file MySession.cs.

bool Sandbox.Game.World.MySession.SetUserPromoteLevel ( ulong  steamId,
MyPromoteLevel  level 
)
inline

Definition at line 569 of file MySession.cs.

static void Sandbox.Game.World.MySession.Start ( string  name,
string  description,
string  password,
MyObjectBuilder_SessionSettings  settings,
List< MyObjectBuilder_Checkpoint.ModItem mods,
MyWorldGenerator.Args  generationArgs 
)
inlinestatic

Initializes a new single player session and start new game with parameters

Definition at line 1051 of file MySession.cs.

void Sandbox.Game.World.MySession.Unload ( )
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 2470 of file MySession.cs.

void Sandbox.Game.World.MySession.UnloadDataComponents ( bool  beforeLoadWorld = false)
inline

Definition at line 421 of file MySession.Components.cs.

void Sandbox.Game.World.MySession.UnloadMultiplayer ( )
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 758 of file MySession.cs.

void Sandbox.Game.World.MySession.UnregisterComponent ( MySessionComponentBase  component)
inline

Definition at line 212 of file MySession.Components.cs.

void Sandbox.Game.World.MySession.Update ( MyTimeSpan  updateTime)
inline

Updates resource.

Implements VRage.Game.ModAPI.IMySession.

Definition at line 842 of file MySession.cs.

void Sandbox.Game.World.MySession.UpdateComponents ( )
inline

Implements VRage.Game.ModAPI.IMySession.

Definition at line 470 of file MySession.Components.cs.

Member Data Documentation

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.

Property Documentation

AdminSettingsEnum Sandbox.Game.World.MySession.AdminSettings
getset

Definition at line 556 of file MySession.cs.

int Sandbox.Game.World.MySession.AppVersionFromSave
get

Definition at line 1684 of file MySession.cs.

float Sandbox.Game.World.MySession.AssemblerEfficiencyMultiplier
get

Definition at line 172 of file MySession.cs.

float Sandbox.Game.World.MySession.AssemblerSpeedMultiplier
get

Definition at line 171 of file MySession.cs.

bool Sandbox.Game.World.MySession.AutoHealing
get

Definition at line 149 of file MySession.cs.

uint Sandbox.Game.World.MySession.AutoSaveInMinutes
get

Definition at line 134 of file MySession.cs.

Dictionary<string, short> Sandbox.Game.World.MySession.BlockTypeLimits
get

Definition at line 166 of file MySession.cs.

string Sandbox.Game.World.MySession.Briefing
getset

Definition at line 128 of file MySession.cs.

string Sandbox.Game.World.MySession.BriefingVideo
getset

Definition at line 129 of file MySession.cs.

IMyCameraController Sandbox.Game.World.MySession.CameraController
get

Definition at line 350 of file MySession.cs.

bool Sandbox.Game.World.MySession.CargoShipsEnabled
get

Definition at line 152 of file MySession.cs.

IMyConfig Sandbox.Game.World.MySession.Config
get

Definition at line 417 of file MySession_ModAPI.cs.

Entities.IMyControllableEntity Sandbox.Game.World.MySession.ControlledEntity
get

Definition at line 301 of file MySession.cs.

bool Sandbox.Game.World.MySession.CreativeMode
get

Definition at line 147 of file MySession.cs.

string Sandbox.Game.World.MySession.CurrentPath
get

Definition at line 127 of file MySession.cs.

string Sandbox.Game.World.MySession.CustomLoadingScreenImage
getset

Definition at line 182 of file MySession.cs.

string Sandbox.Game.World.MySession.CustomLoadingScreenText
getset

Definition at line 183 of file MySession.cs.

string Sandbox.Game.World.MySession.CustomSkybox
getset

Definition at line 184 of file MySession.cs.

string Sandbox.Game.World.MySession.Description
getset

Definition at line 124 of file MySession.cs.

bool Sandbox.Game.World.MySession.DestructibleBlocks
get

Definition at line 153 of file MySession.cs.

TimeSpan Sandbox.Game.World.MySession.ElapsedGameTime
getset

Definition at line 118 of file MySession.cs.

TimeSpan Sandbox.Game.World.MySession.ElapsedPlayTime
get

Definition at line 258 of file MySession.cs.

bool Sandbox.Game.World.MySession.Enable3RdPersonView
get

Definition at line 155 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableBlockLimits
get

Definition at line 168 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableConvertToStation
get

Definition at line 158 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableFlora
get

Definition at line 159 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableIngameScripts
get

Definition at line 154 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableRemoteBlockRemoval
get

Definition at line 167 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableScripterRole
get

Definition at line 212 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableSpiders
get

Definition at line 187 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableToolShake
get

Definition at line 156 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableVoxelDestruction
get

Definition at line 179 of file MySession.cs.

bool Sandbox.Game.World.MySession.EnableWolfs
get

Definition at line 199 of file MySession.cs.

MyEnvironmentHostilityEnum Sandbox.Game.World.MySession.EnvironmentHostility
get

Definition at line 177 of file MySession.cs.

DateTime Sandbox.Game.World.MySession.GameDateTime
getset

Definition at line 106 of file MySession.cs.

MyGameDefinition Sandbox.Game.World.MySession.GameDefinition
getset

Definition at line 1161 of file MySession.cs.

MyGameFocusManager Sandbox.Game.World.MySession.GameFocusManager
get

Definition at line 550 of file MySession.cs.

int Sandbox.Game.World.MySession.GameplayFrameCounter
get

Definition at line 385 of file MySession.cs.

float Sandbox.Game.World.MySession.GrinderSpeedMultiplier
get

Definition at line 174 of file MySession.cs.

float Sandbox.Game.World.MySession.HackSpeedMultiplier
get

Definition at line 175 of file MySession.cs.

bool Sandbox.Game.World.MySession.HasCreativeRights
get

Checks if the local player has access to creative tools.

Definition at line 499 of file MySession.cs.

DateTime Sandbox.Game.World.MySession.InGameTime
getset

Definition at line 121 of file MySession.cs.

float Sandbox.Game.World.MySession.InventoryMultiplier
get

Definition at line 169 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsAdministrator
get

Definition at line 441 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsAdminMenuEnabled
get

Definition at line 145 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsCameraAwaitingEntity
getset

Definition at line 336 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsCopyPastingEnabled
get

Definition at line 537 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsModerator
get

Definition at line 431 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsOwner
get

Definition at line 446 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsScenario
get

Definition at line 214 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsScripter
get

Definition at line 421 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsServer
get

Definition at line 996 of file MySession.cs.

bool Sandbox.Game.World.MySession.IsSpaceMaster
get

Definition at line 436 of file MySession.cs.

Dictionary<long, MyLaserAntenna> Sandbox.Game.World.MySession.LaserAntennas
get

Definition at line 238 of file MySession.cs.

bool Sandbox.Game.World.MySession.LoadedAsMission
get

Definition at line 215 of file MySession.cs.

MyCharacter Sandbox.Game.World.MySession.LocalCharacter
get

Definition at line 309 of file MySession.cs.

long Sandbox.Game.World.MySession.LocalCharacterEntityId
get

Definition at line 317 of file MySession.cs.

MyPlayer Sandbox.Game.World.MySession.LocalHumanPlayer
get

Definition at line 280 of file MySession.cs.

long Sandbox.Game.World.MySession.LocalPlayerId
get

Definition at line 325 of file MySession.cs.

short Sandbox.Game.World.MySession.MaxBackupSaves
get

Definition at line 162 of file MySession.cs.

int Sandbox.Game.World.MySession.MaxBlocksPerPlayer
get

Definition at line 165 of file MySession.cs.

short Sandbox.Game.World.MySession.MaxFloatingObjects
get

Definition at line 161 of file MySession.cs.

int Sandbox.Game.World.MySession.MaxGridSize
get

Definition at line 164 of file MySession.cs.

short Sandbox.Game.World.MySession.MaxPlayers
get

Definition at line 160 of file MySession.cs.

List<MyObjectBuilder_Checkpoint.ModItem> Sandbox.Game.World.MySession.Mods
getset

Definition at line 220 of file MySession.cs.

bool Sandbox.Game.World.MySession.MultiplayerAlive
getset

Definition at line 2646 of file MySession.cs.

bool Sandbox.Game.World.MySession.MultiplayerDirect
getset

Definition at line 2647 of file MySession.cs.

double Sandbox.Game.World.MySession.MultiplayerLastMsg
getset

Definition at line 2648 of file MySession.cs.

MyTimeSpan Sandbox.Game.World.MySession.MultiplayerPing
getset

Definition at line 2649 of file MySession.cs.

string Sandbox.Game.World.MySession.Name
getset

Definition at line 123 of file MySession.cs.

float Sandbox.Game.World.MySession.NegativeIntegrityTotal
getset

Definition at line 268 of file MySession.cs.

MyOnlineModeEnum Sandbox.Game.World.MySession.OnlineMode
get

Definition at line 176 of file MySession.cs.

string Sandbox.Game.World.MySession.Password
getset

Definition at line 125 of file MySession.cs.

bool Sandbox.Game.World.MySession.PersistentEditMode
get

Definition at line 216 of file MySession.cs.

float Sandbox.Game.World.MySession.PositiveIntegrityTotal
getset

Definition at line 267 of file MySession.cs.

MyEnvironmentHostilityEnum Sandbox.Game.World.MySession.PreviousEnvironmentHostility
getset

Definition at line 407 of file MySession.cs.

MyPromoteLevel Sandbox.Game.World.MySession.PromoteLevel
get

Definition at line 410 of file MySession.cs.

bool Sandbox.Game.World.MySession.Ready
get

Definition at line 389 of file MySession.cs.

float Sandbox.Game.World.MySession.RefinerySpeedMultiplier
get

Definition at line 170 of file MySession.cs.

Dictionary<ulong, AdminSettingsEnum> Sandbox.Game.World.MySession.RemoteAdminSettings
getset

Definition at line 562 of file MySession.cs.

bool Sandbox.Game.World.MySession.ShowPlayerNamesOnHud
get

Definition at line 157 of file MySession.cs.

bool Sandbox.Game.World.MySession.StartInRespawnScreen
get

Definition at line 178 of file MySession.cs.

MySession Sandbox.Game.World.MySession.Static
staticgetset

Definition at line 102 of file MySession.cs.

bool Sandbox.Game.World.MySession.SurvivalMode
get

Definition at line 148 of file MySession.cs.

MySyncLayer Sandbox.Game.World.MySession.SyncLayer
get

Definition at line 226 of file MySession.cs.

bool Sandbox.Game.World.MySession.ThrusterDamage
get

Definition at line 150 of file MySession.cs.

string Sandbox.Game.World.MySession.ThumbPath
get

Definition at line 2229 of file MySession.cs.

TimeSpan Sandbox.Game.World.MySession.TimeOnBigShip
get

Definition at line 263 of file MySession.cs.

TimeSpan Sandbox.Game.World.MySession.TimeOnFoot
get

Definition at line 260 of file MySession.cs.

TimeSpan Sandbox.Game.World.MySession.TimeOnJetpack
get

Definition at line 261 of file MySession.cs.

TimeSpan Sandbox.Game.World.MySession.TimeOnSmallShip
get

Definition at line 262 of file MySession.cs.

MyEntity Sandbox.Game.World.MySession.TopMostControlledEntity
get

Definition at line 293 of file MySession.cs.

uint Sandbox.Game.World.MySession.TotalBlocksCreated
getset

Definition at line 273 of file MySession.cs.

uint Sandbox.Game.World.MySession.TotalDamageDealt
getset

Definition at line 272 of file MySession.cs.

ulong Sandbox.Game.World.MySession.VoxelHandVolumeChanged
getset

Definition at line 271 of file MySession.cs.

bool Sandbox.Game.World.MySession.WeaponsEnabled
get

Definition at line 151 of file MySession.cs.

float Sandbox.Game.World.MySession.WelderSpeedMultiplier
get

Definition at line 173 of file MySession.cs.

ulong Sandbox.Game.World.MySession.WorkshopId
get

Definition at line 126 of file MySession.cs.

Event Documentation

Action Sandbox.Game.World.MySession.AfterLoading
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.

Action Sandbox.Game.World.MySession.OnLoading
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.

Action Sandbox.Game.World.MySession.OnUnloaded
static

Definition at line 401 of file MySession.cs.

Action Sandbox.Game.World.MySession.OnUnloading
static

Definition at line 397 of file MySession.cs.


The documentation for this class was generated from the following files: