C# Class Economy.scripts.EconomyScript

Inheritance: Sandbox.Common.MySessionComponentBase
Exibir arquivo Open project: jpcsupplies/Economy_mod Class Usage Examples

Public Properties

Property 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

Public Methods

Method Description
SaveData ( ) : void
UpdateAfterSimulation ( ) : void

Protected Methods

Method Description
UnloadData ( ) : void

Private Methods

Method 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 method

public SaveData ( ) : void
return void

UnloadData() protected method

protected UnloadData ( ) : void
return void

UpdateAfterSimulation() public method

public UpdateAfterSimulation ( ) : void
return 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
return Economy.scripts.EconStructures.ClientConfig

ClientLogger public_oe property

public TextLogger,Economy.scripts ClientLogger
return TextLogger

Data public_oe property

public EconDataStruct,Economy.scripts.EconStructures Data
return 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
return bool

DelayedConnectionRequestTimer public_oe property

public Timer,System.Timers DelayedConnectionRequestTimer
return System.Timers.Timer

Instance public_oe static_oe property

public static EconomyScript,Economy.scripts Instance
return EconomyScript

PlayerMarketRegister public_oe property

Manages the confirmation of players market registrations securely.
public Dictionary PlayerMarketRegister
return MessageMarketManagePlayer>.Dictionary

ReactivePricing public_oe property

public ReactivePricingStruct,Economy.scripts.EconStructures ReactivePricing
return Economy.scripts.EconStructures.ReactivePricingStruct

ServerConfig public_oe property

public EconConfigStruct,Economy.scripts.EconStructures ServerConfig
return Economy.scripts.EconStructures.EconConfigStruct

ServerCulture public_oe static_oe property

public static CultureInfo,System.Globalization ServerCulture
return System.Globalization.CultureInfo

ServerLogger public_oe property

public TextLogger,Economy.scripts ServerLogger
return TextLogger