C# Class MCSharp.Server

Afficher le fichier Open project: Voziv/MCSharp Class Usage Examples

Méthodes publiques

Свойство Type Description
LatestVersion double
MapGen MapGenerator
PCCounter System.Diagnostics.PerformanceCounter
ProcessCounter System.Diagnostics.PerformanceCounter
administrators MCSharp.PlayerList
advbuilders MCSharp.PlayerList
afkset List
banned MCSharp.PlayerList
bannedIP MCSharp.PlayerList
bot MCSharp.PlayerList
builders MCSharp.PlayerList
griefExempted MCSharp.PlayerList
griefExemption List
ircControllers MCSharp.PlayerList
jokerMessages List
levels List
mainLevel MCSharp.World.Map
messages List
moderators MCSharp.PlayerList
operators MCSharp.PlayerList
s Server
salt string

Méthodes publiques

Méthode Description
ForceExit ( ) : void
LoadLastSeen ( ) : void
ParseInput ( ) : void

This function parses input from the server console. In reality the server console should handle the wait for input and call a function within the library to parse a specific command.

ParseInput ( string input ) : void
RandomMessage ( ) : void
SaveLastSeen ( ) : void
Server ( ) : System
Start ( ) : void
Stop ( ) : void
doPhysics ( ) : void
doPortCheck ( ) : bool

Checks the server port with utorrent to find out if the port is open to the internet

Based on an example given by Fragmer (me at matvei dot org)

Private Methods

Méthode Description
Accept ( IAsyncResult result ) : void
SanityCheck ( ) : bool

Checks the MCSharp environment to ensure everything is ready to launch

SettingsUpdate ( ) : void
SetupGeneral ( ) : void
SetupIRC ( ) : void
SetupLevels ( ) : void
SetupNetwork ( ) : bool
SetupRanks ( ) : void
hasWriteAccessToFolder ( string path ) : bool

Method Details

ForceExit() public static méthode

public static ForceExit ( ) : void
Résultat void

LoadLastSeen() public static méthode

public static LoadLastSeen ( ) : void
Résultat void

ParseInput() public méthode

This function parses input from the server console. In reality the server console should handle the wait for input and call a function within the library to parse a specific command.
public ParseInput ( ) : void
Résultat void

ParseInput() public méthode

public ParseInput ( string input ) : void
input string
Résultat void

RandomMessage() public static méthode

public static RandomMessage ( ) : void
Résultat void

SaveLastSeen() public static méthode

public static SaveLastSeen ( ) : void
Résultat void

Server() public méthode

public Server ( ) : System
Résultat System

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

doPhysics() public static méthode

public static doPhysics ( ) : void
Résultat void

doPortCheck() public static méthode

Checks the server port with utorrent to find out if the port is open to the internet
Based on an example given by Fragmer (me at matvei dot org)
public static doPortCheck ( ) : bool
Résultat bool

Property Details

LatestVersion public_oe static_oe property

public static double LatestVersion
Résultat double

MapGen public_oe static_oe property

TODO: Bring the new map generator that isn't static in from the xmap branch This declaration is deprecated
public static MapGenerator MapGen
Résultat MapGenerator

PCCounter public_oe static_oe property

public static PerformanceCounter,System.Diagnostics PCCounter
Résultat System.Diagnostics.PerformanceCounter

ProcessCounter public_oe static_oe property

public static PerformanceCounter,System.Diagnostics ProcessCounter
Résultat System.Diagnostics.PerformanceCounter

administrators public_oe static_oe property

Player Lists
public static PlayerList,MCSharp administrators
Résultat MCSharp.PlayerList

advbuilders public_oe static_oe property

public static PlayerList,MCSharp advbuilders
Résultat MCSharp.PlayerList

afkset public_oe static_oe property

public static List afkset
Résultat List

banned public_oe static_oe property

public static PlayerList,MCSharp banned
Résultat MCSharp.PlayerList

bannedIP public_oe static_oe property

public static PlayerList,MCSharp bannedIP
Résultat MCSharp.PlayerList

bot public_oe static_oe property

public static PlayerList,MCSharp bot
Résultat MCSharp.PlayerList

builders public_oe static_oe property

public static PlayerList,MCSharp builders
Résultat MCSharp.PlayerList

griefExempted public_oe static_oe property

public static PlayerList,MCSharp griefExempted
Résultat MCSharp.PlayerList

griefExemption public_oe static_oe property

public static List griefExemption
Résultat List

ircControllers public_oe static_oe property

public static PlayerList,MCSharp ircControllers
Résultat MCSharp.PlayerList

jokerMessages public_oe static_oe property

public static List jokerMessages
Résultat List

levels public_oe static_oe property

public static List levels
Résultat List

mainLevel public_oe static_oe property

public static Map,MCSharp.World mainLevel
Résultat MCSharp.World.Map

messages public_oe static_oe property

public static List messages
Résultat List

moderators public_oe static_oe property

public static PlayerList,MCSharp moderators
Résultat MCSharp.PlayerList

operators public_oe static_oe property

public static PlayerList,MCSharp operators
Résultat MCSharp.PlayerList

s public_oe static_oe property

public static Server,MCSharp s
Résultat Server

salt public_oe static_oe property

public static string salt
Résultat string