Space Engineers
|
Classes | |
struct | PlayerId |
Public Member Functions | |
MyPlayer (MyNetworkClient client, PlayerId id) | |
void | Init (MyObjectBuilder_Player objectBuilder) |
MyObjectBuilder_Player | GetObjectBuilder () |
void | SetDefaultColors () |
void | ChangeOrSwitchToColor (Vector3 color) |
void | SetBuildColorSlots (List< Vector3 > newColors) |
Vector3D | GetPosition () |
void | SpawnAt (MatrixD worldMatrix, Vector3 velocity, MyEntity spawnedBy, MyBotDefinition botDefinition, bool findFreePlace=true) |
void | SpawnIntoCharacter (MyCharacter character) |
VRage.Game.MyRelationsBetweenPlayerAndBlock | GetRelationTo (long playerId) |
void | RemoveGrid (long gridEntityId) |
void | AddGrid (long gridEntityId) |
Static Public Member Functions | |
static bool | IsColorsSetToDefaults (List< Vector3 > colors) |
static VRage.Game.MyRelationsBetweenPlayerAndBlock | GetRelationBetweenPlayers (long playerId1, long playerId2) |
static MyRelationsBetweenPlayers | GetRelationsBetweenPlayers (long playerId1, long playerId2) |
static MyPlayer | GetPlayerFromCharacter (MyCharacter character) |
static MyPlayer | GetPlayerFromWeapon (IMyGunBaseUser gunUser) |
Public Attributes | |
List< long > | RespawnShip = new List<long>() |
HashSet< long > | Grids = new HashSet<long>() |
Grids in which this player has at least one block More... | |
List< long > | CachedControllerId |
Properties | |
MyNetworkClient | Client [get] |
MyIdentity | Identity [get, set] |
MyEntityController | Controller [get] |
This is created with the creation of the player, so it should never be null More... | |
string | DisplayName [get] |
static int | BuildColorSlotCount [get] |
int | SelectedBuildColorSlot [get, set] |
Vector3 | SelectedBuildColor [get, set] |
static int | SelectedColorSlot [get] |
static Vector3 | SelectedColor [get] |
static ListReader< Vector3 > | ColorSlots [get] |
List< Vector3 > | BuildColorSlots [get] |
bool | IsLocalPlayer [get] |
bool | IsRemotePlayer [get] |
bool | IsRealPlayer [get] |
bool | IsBot [get] |
bool | IsAdmin [get] |
bool | IsSpaceMaster [get] |
bool | IsScripter [get] |
bool | IsModerator [get] |
MyCharacter | Character [get] |
PlayerId | Id [get, protected set] |
Properties inherited from VRage.Game.ModAPI.IMyPlayer | |
IMyNetworkClient | Client [get] |
HashSet< long > | Grids [get] |
IMyEntityController | Controller [get] |
ulong | SteamUserId [get] |
string | DisplayName [get] |
long | PlayerID [get] |
long | IdentityId [get] |
bool | IsAdmin [get] |
bool | IsPromoted [get] |
Events | |
Action< MyPlayer, MyIdentity > | IdentityChanged |
Definition at line 24 of file MyPlayer.cs.
|
inline |
Definition at line 240 of file MyPlayer.cs.
|
inline |
Implements VRage.Game.ModAPI.IMyPlayer.
Definition at line 496 of file MyPlayer.cs.
|
inline |
Definition at line 355 of file MyPlayer.cs.
|
inline |
Definition at line 296 of file MyPlayer.cs.
|
inlinestatic |
Definition at line 501 of file MyPlayer.cs.
|
inlinestatic |
Definition at line 517 of file MyPlayer.cs.
|
inline |
Implements VRage.Game.ModAPI.IMyPlayer.
Definition at line 375 of file MyPlayer.cs.
|
inlinestatic |
Definition at line 443 of file MyPlayer.cs.
|
inlinestatic |
Definition at line 470 of file MyPlayer.cs.
|
inline |
Implements VRage.Game.ModAPI.IMyPlayer.
Definition at line 463 of file MyPlayer.cs.
|
inline |
Definition at line 247 of file MyPlayer.cs.
|
inlinestatic |
Definition at line 317 of file MyPlayer.cs.
|
inline |
Implements VRage.Game.ModAPI.IMyPlayer.
Definition at line 491 of file MyPlayer.cs.
|
inline |
Definition at line 368 of file MyPlayer.cs.
|
inline |
Definition at line 328 of file MyPlayer.cs.
|
inline |
Definition at line 384 of file MyPlayer.cs.
|
inline |
Definition at line 435 of file MyPlayer.cs.
List<long> Sandbox.Game.World.MyPlayer.CachedControllerId |
Definition at line 233 of file MyPlayer.cs.
HashSet<long> Sandbox.Game.World.MyPlayer.Grids = new HashSet<long>() |
Grids in which this player has at least one block
#warning: This should probably be on the identity. Check whether it's correct
Definition at line 231 of file MyPlayer.cs.
List<long> Sandbox.Game.World.MyPlayer.RespawnShip = new List<long>() |
Definition at line 225 of file MyPlayer.cs.
|
staticget |
Definition at line 151 of file MyPlayer.cs.
|
get |
Definition at line 166 of file MyPlayer.cs.
|
get |
Definition at line 215 of file MyPlayer.cs.
|
get |
Definition at line 122 of file MyPlayer.cs.
|
staticget |
Definition at line 161 of file MyPlayer.cs.
|
get |
This is created with the creation of the player, so it should never be null
Definition at line 145 of file MyPlayer.cs.
|
get |
Definition at line 147 of file MyPlayer.cs.
|
getprotected set |
Definition at line 223 of file MyPlayer.cs.
|
getset |
Definition at line 125 of file MyPlayer.cs.
|
get |
Definition at line 175 of file MyPlayer.cs.
|
get |
Definition at line 172 of file MyPlayer.cs.
|
get |
Definition at line 168 of file MyPlayer.cs.
|
get |
Definition at line 205 of file MyPlayer.cs.
|
get |
Definition at line 171 of file MyPlayer.cs.
|
get |
Definition at line 169 of file MyPlayer.cs.
|
get |
Definition at line 195 of file MyPlayer.cs.
|
get |
Definition at line 185 of file MyPlayer.cs.
|
getset |
Definition at line 156 of file MyPlayer.cs.
|
getset |
Definition at line 154 of file MyPlayer.cs.
|
staticget |
Definition at line 160 of file MyPlayer.cs.
|
staticget |
Definition at line 159 of file MyPlayer.cs.
Action<MyPlayer, MyIdentity> Sandbox.Game.World.MyPlayer.IdentityChanged |
Definition at line 140 of file MyPlayer.cs.