C# Class Economy.scripts.EconomyScript

Inheritance: Sandbox.Common.MySessionComponentBase
Afficher le fichier Open project: jpcsupplies/Economy_mod Class Usage Examples

Méthodes publiques

Свойство Type Description
ClientConfig Economy.scripts.EconStructures.ClientConfig
ClientLogger TextLogger
Data Economy.scripts.EconStructures.EconDataStruct
DebugOn bool
DelayedConnectionRequestTimer System.Timers.Timer
Instance EconomyScript
PlayerMarketRegister MessageMarketManagePlayer>.Dictionary
ReactivePricing Economy.scripts.EconStructures.ReactivePricingStruct
ServerConfig Economy.scripts.EconStructures.EconConfigStruct
ServerCulture System.Globalization.CultureInfo
ServerLogger TextLogger

Méthodes publiques

Méthode Description
SaveData ( ) : void
UpdateAfterSimulation ( ) : void

Méthodes protégées

Méthode Description
UnloadData ( ) : void

Private Methods

Méthode Description
DelayedConnectionRequestTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
GotMessage ( string messageText, bool &sendToOthers ) : void
HandleMessage ( byte message ) : void
InitClient ( ) : void
InitServer ( ) : void
ProcessMessage ( string messageText ) : bool
SetLanguage ( ) : void

Sets the CultureInfo to use when formatting numbers and dates on the server, and the text resources when fetching names of game objects to display or send back to players.

Timer10EventsOnElapsed ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void
Timer1EventsOnElapsed ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void
Timer3600EventsOnElapsed ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void

Method Details

SaveData() public méthode

public SaveData ( ) : void
Résultat void

UnloadData() protected méthode

protected UnloadData ( ) : void
Résultat void

UpdateAfterSimulation() public méthode

public UpdateAfterSimulation ( ) : void
Résultat void

Property Details

ClientConfig public_oe property

This will temporarily store Client side details while the client is connected. It will receive periodic updates from the server.
public ClientConfig,Economy.scripts.EconStructures ClientConfig
Résultat Economy.scripts.EconStructures.ClientConfig

ClientLogger public_oe property

public TextLogger,Economy.scripts ClientLogger
Résultat TextLogger

Data public_oe property

public EconDataStruct,Economy.scripts.EconStructures Data
Résultat Economy.scripts.EconStructures.EconDataStruct

DebugOn public_oe property

Set manually to true for testing purposes. No need for this function in general.
public bool DebugOn
Résultat bool

DelayedConnectionRequestTimer public_oe property

public Timer,System.Timers DelayedConnectionRequestTimer
Résultat System.Timers.Timer

Instance public_oe static_oe property

public static EconomyScript,Economy.scripts Instance
Résultat EconomyScript

PlayerMarketRegister public_oe property

Manages the confirmation of players market registrations securely.
public Dictionary PlayerMarketRegister
Résultat MessageMarketManagePlayer>.Dictionary

ReactivePricing public_oe property

public ReactivePricingStruct,Economy.scripts.EconStructures ReactivePricing
Résultat Economy.scripts.EconStructures.ReactivePricingStruct

ServerConfig public_oe property

public EconConfigStruct,Economy.scripts.EconStructures ServerConfig
Résultat Economy.scripts.EconStructures.EconConfigStruct

ServerCulture public_oe static_oe property

public static CultureInfo,System.Globalization ServerCulture
Résultat System.Globalization.CultureInfo

ServerLogger public_oe property

public TextLogger,Economy.scripts ServerLogger
Résultat TextLogger