Space Engineers
Classes | Public Member Functions | Public Attributes | Properties | Events | List of all members
Sandbox.Game.World.MyIdentity Class Reference
Inheritance diagram for Sandbox.Game.World.MyIdentity:
VRage.Game.ModAPI.IMyIdentity

Classes

class  Friend
 

Public Member Functions

MyObjectBuilder_Identity GetObjectBuilder ()
 
void SetColorMask (Vector3 color)
 
void ChangeCharacter (MyCharacter character)
 
void SetDead (bool dead)
 
void PerformFirstSpawn ()
 This is to prevent spawning after permadeath - in such cases, the player needs new identity! More...
 
void SetDisplayName (string name)
 This should only be called during initialization It is used to assume the identity of someone else, but keep your name More...
 
void TransferAllBlocksTo (long newOwnerIdentityId)
 
void IncreaseBlocksBuilt (string type, MyCubeGrid grid)
 Increase the amount of blocks (in general and of particular type) this player has built More...
 
void DecreaseBlocksBuilt (string type, MyCubeGrid grid)
 Decrease the amount of blocks (in general and of particular type) this player has built More...
 

Public Attributes

FastResourceLock LockBlocksBuiltByGrid = new FastResourceLock()
 
FastResourceLock LockBlockTypeBuilt = new FastResourceLock()
 

Properties

long IdentityId [get]
 
string DisplayName [get]
 
MyCharacter Character [get]
 
string Model [get]
 
Vector3 ColorMask [get]
 
bool IsDead [get]
 
bool FirstSpawnDone [get]
 
int BlocksBuilt [get]
 
int BlockLimitModifier [get, set]
 
Dictionary< string, int > BlockTypeBuilt [get]
 
Dictionary< MyCubeGrid, int > BlocksBuiltByGrid [get]
 
DateTime LastLoginTime [get, set]
 
- Properties inherited from VRage.Game.ModAPI.IMyIdentity
long PlayerId [get]
 
long IdentityId [get]
 
string DisplayName [get]
 
string Model [get]
 
Vector3 ColorMask [get]
 
bool IsDead [get]
 

Events

Action< MyCharacter, MyCharacterCharacterChanged
 

Detailed Description

Definition at line 21 of file MyIdentity.cs.

Member Function Documentation

void Sandbox.Game.World.MyIdentity.ChangeCharacter ( MyCharacter  character)
inline

Definition at line 130 of file MyIdentity.cs.

void Sandbox.Game.World.MyIdentity.DecreaseBlocksBuilt ( string  type,
MyCubeGrid  grid 
)
inline

Decrease the amount of blocks (in general and of particular type) this player has built

Definition at line 255 of file MyIdentity.cs.

MyObjectBuilder_Identity Sandbox.Game.World.MyIdentity.GetObjectBuilder ( )
inline

Definition at line 93 of file MyIdentity.cs.

void Sandbox.Game.World.MyIdentity.IncreaseBlocksBuilt ( string  type,
MyCubeGrid  grid 
)
inline

Increase the amount of blocks (in general and of particular type) this player has built

Definition at line 224 of file MyIdentity.cs.

void Sandbox.Game.World.MyIdentity.PerformFirstSpawn ( )
inline

This is to prevent spawning after permadeath - in such cases, the player needs new identity!

Definition at line 168 of file MyIdentity.cs.

void Sandbox.Game.World.MyIdentity.SetColorMask ( Vector3  color)
inline

Definition at line 125 of file MyIdentity.cs.

void Sandbox.Game.World.MyIdentity.SetDead ( bool  dead)
inline

Definition at line 160 of file MyIdentity.cs.

void Sandbox.Game.World.MyIdentity.SetDisplayName ( string  name)
inline

This should only be called during initialization It is used to assume the identity of someone else, but keep your name

Parameters
name

Definition at line 179 of file MyIdentity.cs.

void Sandbox.Game.World.MyIdentity.TransferAllBlocksTo ( long  newOwnerIdentityId)
inline

Definition at line 198 of file MyIdentity.cs.

Member Data Documentation

FastResourceLock Sandbox.Game.World.MyIdentity.LockBlocksBuiltByGrid = new FastResourceLock()

Definition at line 56 of file MyIdentity.cs.

FastResourceLock Sandbox.Game.World.MyIdentity.LockBlockTypeBuilt = new FastResourceLock()

Definition at line 57 of file MyIdentity.cs.

Property Documentation

int Sandbox.Game.World.MyIdentity.BlockLimitModifier
getset

Definition at line 53 of file MyIdentity.cs.

int Sandbox.Game.World.MyIdentity.BlocksBuilt
get

Definition at line 52 of file MyIdentity.cs.

Dictionary<MyCubeGrid, int> Sandbox.Game.World.MyIdentity.BlocksBuiltByGrid
get

Definition at line 55 of file MyIdentity.cs.

Dictionary<string, int> Sandbox.Game.World.MyIdentity.BlockTypeBuilt
get

Definition at line 54 of file MyIdentity.cs.

MyCharacter Sandbox.Game.World.MyIdentity.Character
get

Definition at line 45 of file MyIdentity.cs.

Vector3 Sandbox.Game.World.MyIdentity.ColorMask
get

Definition at line 47 of file MyIdentity.cs.

string Sandbox.Game.World.MyIdentity.DisplayName
get

Definition at line 43 of file MyIdentity.cs.

bool Sandbox.Game.World.MyIdentity.FirstSpawnDone
get

Definition at line 50 of file MyIdentity.cs.

long Sandbox.Game.World.MyIdentity.IdentityId
get

Definition at line 42 of file MyIdentity.cs.

bool Sandbox.Game.World.MyIdentity.IsDead
get

Definition at line 49 of file MyIdentity.cs.

DateTime Sandbox.Game.World.MyIdentity.LastLoginTime
getset

Definition at line 59 of file MyIdentity.cs.

string Sandbox.Game.World.MyIdentity.Model
get

Definition at line 46 of file MyIdentity.cs.

Event Documentation

Action<MyCharacter, MyCharacter> Sandbox.Game.World.MyIdentity.CharacterChanged

Definition at line 61 of file MyIdentity.cs.


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