|
void | RequestSync () |
|
override void | InitFromCheckpoint (MyObjectBuilder_Checkpoint checkpoint) |
|
override void | SaveToCheckpoint (MyObjectBuilder_Checkpoint checkpoint) |
|
override void | BeforeStart () |
|
override void | LoadData () |
|
void | SyncCooldownToPlayer (ulong steamId, bool isLocal) |
|
override void | UpdatingStopped () |
|
override void | UpdateBeforeSimulation () |
|
void | ResetRespawnCooldown (MyPlayer.PlayerId controllerId) |
|
int | GetRespawnCooldownSeconds (MyPlayer.PlayerId controllerId, string respawnShipId) |
|
override bool | HandleRespawnRequest (bool joinGame, bool newIdentity, long medicalRoomId, string respawnShipId, MyPlayer.PlayerId playerId, Vector3D?spawnPosition, VRage.ObjectBuilders.SerializableDefinitionId?botDefinitionId) |
|
void | SpawnAsNewPlayer (MyPlayer player, Vector3D currentPosition, string respawnShipId, bool resetIdentity, MyBotDefinition botDefinition) |
|
void | SpawnAtShip (MyPlayer player, string respawnShipId, MyBotDefinition botDefinition) |
|
override void | AfterRemovePlayer (MyPlayer player) |
|
override MyIdentity | CreateNewIdentity (string identityName, MyPlayer.PlayerId playerId, string modelName) |
|
override void | SetupCharacterDefault (MyPlayer player, MyWorldGenerator.Args args) |
|
override int | CountAvailableSpawns (MyPlayer player) |
|
override bool | IsInRespawnScreen () |
|
override void | CloseRespawnScreen () |
|
override void | SetNoRespawnText (StringBuilder text, int timeSec) |
|
override void | SetupCharacterFromStarts (MyPlayer player, MyWorldGeneratorStartingStateBase[] playerStarts, MyWorldGenerator.Args args) |
|
Public Member Functions inherited from Sandbox.Game.SessionComponents.MyRespawnComponentBase |
void | ResetPlayerIdentity (MyPlayer player) |
|
virtual bool | UpdatedBeforeInit () |
|
| MySessionComponentBase () |
|
void | SetUpdateOrder (MyUpdateOrder order) |
|
virtual void | InitFromDefinition (MySessionComponentDefinition definition) |
|
virtual void | Init (MyObjectBuilder_SessionComponent sessionComponent) |
|
virtual MyObjectBuilder_SessionComponent | GetObjectBuilder () |
|
void | AfterLoadData () |
|
void | UnloadDataConditional () |
|
virtual void | SaveData () |
|
virtual void | Simulate () |
|
virtual void | UpdateAfterSimulation () |
|
virtual void | Draw () |
|
virtual void | HandleInput () |
|
override string | ToString () |
|
|
static void | GetSpawnPosition (float collisionRadius, ref Vector3D position, out Vector3D forward, out Vector3D up, float planetSpawnHeightRatio=0.3f, float randomRangeMin=500, float randomRangeMax=650) |
| Returns a position that should be safe to spawn at given the radius and position. More...
|
|
Definition at line 36 of file MySpaceRespawnComponent.cs.
override void SpaceEngineers.Game.World.MySpaceRespawnComponent.AfterRemovePlayer |
( |
MyPlayer |
player | ) |
|
|
inlinevirtual |
override void SpaceEngineers.Game.World.MySpaceRespawnComponent.BeforeStart |
( |
| ) |
|
|
inlinevirtual |
override void SpaceEngineers.Game.World.MySpaceRespawnComponent.CloseRespawnScreen |
( |
| ) |
|
|
inlinevirtual |
override int SpaceEngineers.Game.World.MySpaceRespawnComponent.CountAvailableSpawns |
( |
MyPlayer |
player | ) |
|
|
inlinevirtual |
override MyIdentity SpaceEngineers.Game.World.MySpaceRespawnComponent.CreateNewIdentity |
( |
string |
identityName, |
|
|
MyPlayer.PlayerId |
playerId, |
|
|
string |
modelName |
|
) |
| |
|
inlinevirtual |
int SpaceEngineers.Game.World.MySpaceRespawnComponent.GetRespawnCooldownSeconds |
( |
MyPlayer.PlayerId |
controllerId, |
|
|
string |
respawnShipId |
|
) |
| |
|
inline |
static void SpaceEngineers.Game.World.MySpaceRespawnComponent.GetSpawnPosition |
( |
float |
collisionRadius, |
|
|
ref Vector3D |
position, |
|
|
out Vector3D |
forward, |
|
|
out Vector3D |
up, |
|
|
float |
planetSpawnHeightRatio = 0.3f , |
|
|
float |
randomRangeMin = 500 , |
|
|
float |
randomRangeMax = 650 |
|
) |
| |
|
inlinestatic |
Returns a position that should be safe to spawn at given the radius and position.
- Parameters
-
collisionRadius | The radius of the object that is trying to spawn. |
position | The position the object would like to spawn at. |
forward | (Out) The forward vector the object should spawn with. |
up | (Out) The up vector the object should spawn with. |
planetSpawnHeightRatio | The ratio within the planet's max radius and atmosphere radius you are positioned in. |
randomRangeMin | The minimum randomized distance that is added. |
randomRangeMax | The minimum randomized distance that is added. |
Definition at line 911 of file MySpaceRespawnComponent.cs.
override bool SpaceEngineers.Game.World.MySpaceRespawnComponent.IsInRespawnScreen |
( |
| ) |
|
|
inlinevirtual |
override void SpaceEngineers.Game.World.MySpaceRespawnComponent.LoadData |
( |
| ) |
|
|
inlinevirtual |
void SpaceEngineers.Game.World.MySpaceRespawnComponent.RequestSync |
( |
| ) |
|
|
inline |
void SpaceEngineers.Game.World.MySpaceRespawnComponent.ResetRespawnCooldown |
( |
MyPlayer.PlayerId |
controllerId | ) |
|
|
inline |
override void SpaceEngineers.Game.World.MySpaceRespawnComponent.SetNoRespawnText |
( |
StringBuilder |
text, |
|
|
int |
timeSec |
|
) |
| |
|
inlinevirtual |
void SpaceEngineers.Game.World.MySpaceRespawnComponent.SpawnAsNewPlayer |
( |
MyPlayer |
player, |
|
|
Vector3D |
currentPosition, |
|
|
string |
respawnShipId, |
|
|
bool |
resetIdentity, |
|
|
MyBotDefinition |
botDefinition |
|
) |
| |
|
inline |
void SpaceEngineers.Game.World.MySpaceRespawnComponent.SpawnAtShip |
( |
MyPlayer |
player, |
|
|
string |
respawnShipId, |
|
|
MyBotDefinition |
botDefinition |
|
) |
| |
|
inline |
void SpaceEngineers.Game.World.MySpaceRespawnComponent.SyncCooldownToPlayer |
( |
ulong |
steamId, |
|
|
bool |
isLocal |
|
) |
| |
|
inline |
override void SpaceEngineers.Game.World.MySpaceRespawnComponent.UnloadData |
( |
| ) |
|
|
inlineprotectedvirtual |
override void SpaceEngineers.Game.World.MySpaceRespawnComponent.UpdateBeforeSimulation |
( |
| ) |
|
|
inlinevirtual |
override void SpaceEngineers.Game.World.MySpaceRespawnComponent.UpdatingStopped |
( |
| ) |
|
|
inlinevirtual |
bool SpaceEngineers.Game.World.MySpaceRespawnComponent.IsSynced |
|
get |
The documentation for this class was generated from the following file: