C# Class MCSharp.Server

Mostrar archivo Open project: Voziv/MCSharp Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

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

public static ForceExit ( ) : void
return void

LoadLastSeen() public static method

public static LoadLastSeen ( ) : void
return void

ParseInput() public method

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
return void

ParseInput() public method

public ParseInput ( string input ) : void
input string
return void

RandomMessage() public static method

public static RandomMessage ( ) : void
return void

SaveLastSeen() public static method

public static SaveLastSeen ( ) : void
return void

Server() public method

public Server ( ) : System
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

doPhysics() public static method

public static doPhysics ( ) : void
return void

doPortCheck() public static method

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
return bool

Property Details

LatestVersion public_oe static_oe property

public static double LatestVersion
return 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
return MapGenerator

PCCounter public_oe static_oe property

public static PerformanceCounter,System.Diagnostics PCCounter
return System.Diagnostics.PerformanceCounter

ProcessCounter public_oe static_oe property

public static PerformanceCounter,System.Diagnostics ProcessCounter
return System.Diagnostics.PerformanceCounter

administrators public_oe static_oe property

Player Lists
public static PlayerList,MCSharp administrators
return MCSharp.PlayerList

advbuilders public_oe static_oe property

public static PlayerList,MCSharp advbuilders
return MCSharp.PlayerList

afkset public_oe static_oe property

public static List afkset
return List

banned public_oe static_oe property

public static PlayerList,MCSharp banned
return MCSharp.PlayerList

bannedIP public_oe static_oe property

public static PlayerList,MCSharp bannedIP
return MCSharp.PlayerList

bot public_oe static_oe property

public static PlayerList,MCSharp bot
return MCSharp.PlayerList

builders public_oe static_oe property

public static PlayerList,MCSharp builders
return MCSharp.PlayerList

griefExempted public_oe static_oe property

public static PlayerList,MCSharp griefExempted
return MCSharp.PlayerList

griefExemption public_oe static_oe property

public static List griefExemption
return List

ircControllers public_oe static_oe property

public static PlayerList,MCSharp ircControllers
return MCSharp.PlayerList

jokerMessages public_oe static_oe property

public static List jokerMessages
return List

levels public_oe static_oe property

public static List levels
return List

mainLevel public_oe static_oe property

public static Map,MCSharp.World mainLevel
return MCSharp.World.Map

messages public_oe static_oe property

public static List messages
return List

moderators public_oe static_oe property

public static PlayerList,MCSharp moderators
return MCSharp.PlayerList

operators public_oe static_oe property

public static PlayerList,MCSharp operators
return MCSharp.PlayerList

s public_oe static_oe property

public static Server,MCSharp s
return Server

salt public_oe static_oe property

public static string salt
return string