Space Engineers
Public Member Functions | Static Public Member Functions | Events | List of all members
Sandbox.Game.GameSystems.MyChatSystem Class Reference
Inheritance diagram for Sandbox.Game.GameSystems.MyChatSystem:
VRage.Game.Components.MySessionComponentBase VRage.Game.Components.Interfaces.IMyUserInputComponent

Public Member Functions

 MyChatSystem ()
 
void OnNewPlayerMessage (long playerId, long senderId)
 
void OnNewFactionMessage (long factionId1, long factionId2, long senderId, bool showNotification)
 
void OnNewGlobalMessage (long senderId)
 
override void UpdateAfterSimulation ()
 
void ClearChatHistoryForPlayer (MyIdentity identity)
 
- Public Member Functions inherited from VRage.Game.Components.MySessionComponentBase
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 LoadData ()
 
virtual void SaveData ()
 
virtual void BeforeStart ()
 
virtual void UpdateBeforeSimulation ()
 
virtual void Simulate ()
 
virtual void UpdatingStopped ()
 
virtual void Draw ()
 
virtual void HandleInput ()
 
override string ToString ()
 

Static Public Member Functions

static MyChatHistory GetChatHistory (long localPlayerId)
 
static MyPlayerChatHistory GetPlayerChatHistory (long localPlayerId, long otherPlayerId)
 
static MyFactionChatHistory GetFactionChatHistory (long localPlayerId, long factionId)
 
static MyFactionChatHistory FindFactionChatHistory (long factionId1, long factionId2)
 
static void AddPlayerChatItem (long localPlayerId, long remotePlayerId, MyPlayerChatItem chatItem)
 
static void AddFactionChatItem (long localPlayerId, long factionId1, long factionId2, MyFactionChatItem chatItem)
 
static void AddGlobalChatItem (long localPlayerId, MyGlobalChatItem chatItem)
 
static void SetPlayerChatItemSent (long localPlayerId, long remotePlayerId, string text, TimeSpan timestamp, bool sent)
 

Events

Action< long > PlayerMessageReceived
 
Action< long > FactionMessageReceived
 
Action PlayerHistoryDeleted
 
Action FactionHistoryDeleted
 
Action GlobalMessageReceived
 

Additional Inherited Members

- Public Attributes inherited from VRage.Game.Components.MySessionComponentBase
readonly string DebugName
 
readonly int Priority
 
readonly Type ComponentType
 
IMySession Session
 
- Protected Member Functions inherited from VRage.Game.Components.MySessionComponentBase
virtual void UnloadData ()
 
- Properties inherited from VRage.Game.Components.MySessionComponentBase
MyUpdateOrder UpdateOrder [get]
 
MyObjectBuilderType ObjectBuilderType [get]
 
bool Loaded [get]
 
bool Initialized [get]
 
MyDefinitionId Definition [get, set]
 
virtual Type[] Dependencies [get]
 
virtual bool IsRequiredByGame [get]
 Indicates whether a session component should be used in current configuration. Example: MyDestructionData component returns true only when game uses Havok Destruction More...
 

Detailed Description

Definition at line 23 of file MyChatSystem.cs.

Constructor & Destructor Documentation

Sandbox.Game.GameSystems.MyChatSystem.MyChatSystem ( )
inline

Definition at line 136 of file MyChatSystem.cs.

Member Function Documentation

static void Sandbox.Game.GameSystems.MyChatSystem.AddFactionChatItem ( long  localPlayerId,
long  factionId1,
long  factionId2,
MyFactionChatItem  chatItem 
)
inlinestatic

Definition at line 79 of file MyChatSystem.cs.

static void Sandbox.Game.GameSystems.MyChatSystem.AddGlobalChatItem ( long  localPlayerId,
MyGlobalChatItem  chatItem 
)
inlinestatic

Definition at line 95 of file MyChatSystem.cs.

static void Sandbox.Game.GameSystems.MyChatSystem.AddPlayerChatItem ( long  localPlayerId,
long  remotePlayerId,
MyPlayerChatItem  chatItem 
)
inlinestatic

Definition at line 74 of file MyChatSystem.cs.

void Sandbox.Game.GameSystems.MyChatSystem.ClearChatHistoryForPlayer ( MyIdentity  identity)
inline

Definition at line 347 of file MyChatSystem.cs.

static MyFactionChatHistory Sandbox.Game.GameSystems.MyChatSystem.FindFactionChatHistory ( long  factionId1,
long  factionId2 
)
inlinestatic

Definition at line 60 of file MyChatSystem.cs.

static MyChatHistory Sandbox.Game.GameSystems.MyChatSystem.GetChatHistory ( long  localPlayerId)
inlinestatic

Definition at line 25 of file MyChatSystem.cs.

static MyFactionChatHistory Sandbox.Game.GameSystems.MyChatSystem.GetFactionChatHistory ( long  localPlayerId,
long  factionId 
)
inlinestatic

Definition at line 49 of file MyChatSystem.cs.

static MyPlayerChatHistory Sandbox.Game.GameSystems.MyChatSystem.GetPlayerChatHistory ( long  localPlayerId,
long  otherPlayerId 
)
inlinestatic

Definition at line 34 of file MyChatSystem.cs.

void Sandbox.Game.GameSystems.MyChatSystem.OnNewFactionMessage ( long  factionId1,
long  factionId2,
long  senderId,
bool  showNotification 
)
inline

Definition at line 181 of file MyChatSystem.cs.

void Sandbox.Game.GameSystems.MyChatSystem.OnNewGlobalMessage ( long  senderId)
inline

Definition at line 214 of file MyChatSystem.cs.

void Sandbox.Game.GameSystems.MyChatSystem.OnNewPlayerMessage ( long  playerId,
long  senderId 
)
inline

Definition at line 157 of file MyChatSystem.cs.

static void Sandbox.Game.GameSystems.MyChatSystem.SetPlayerChatItemSent ( long  localPlayerId,
long  remotePlayerId,
string  text,
TimeSpan  timestamp,
bool  sent 
)
inlinestatic

Definition at line 100 of file MyChatSystem.cs.

override void Sandbox.Game.GameSystems.MyChatSystem.UpdateAfterSimulation ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 239 of file MyChatSystem.cs.

Event Documentation

Action Sandbox.Game.GameSystems.MyChatSystem.FactionHistoryDeleted

Definition at line 126 of file MyChatSystem.cs.

Action<long> Sandbox.Game.GameSystems.MyChatSystem.FactionMessageReceived

Definition at line 123 of file MyChatSystem.cs.

Action Sandbox.Game.GameSystems.MyChatSystem.GlobalMessageReceived

Definition at line 128 of file MyChatSystem.cs.

Action Sandbox.Game.GameSystems.MyChatSystem.PlayerHistoryDeleted

Definition at line 125 of file MyChatSystem.cs.

Action<long> Sandbox.Game.GameSystems.MyChatSystem.PlayerMessageReceived

Definition at line 122 of file MyChatSystem.cs.


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