C# Class OpenSMO.MainClass

Show file Open project: concubidated/OpenSMO Class Usage Examples

Public Properties

Property Type Description
Build int
FPS int
Instance MainClass
Rooms List
Scripting OpenSMO.Scripting
ServerConfig OpenSMO.Config
ServerMaxPlayers byte
ServerOffset byte
ServerVersion byte
StartTime System.DateTime
Users List
rnd System.Random
tcpListener System.Net.Sockets.TcpListener
tcpListenerRTS System.Net.Sockets.TcpListener

Public Methods

Method Description
AddLog ( string Str, bool Bad = false ) : void
Epoch ( ) : long
JsonSafe ( string str ) : string
MD5 ( string input ) : string
Main ( string args ) : void
MainClass ( string args ) : System
RTSThread ( ) : void
RandomString ( int len, string chars = "abcdefghijklmnopqrstuvwxyz0123456789" ) : string
ReloadScripts ( ) : void
SendChatAll ( string Message ) : void
SendChatAll ( string Message, OpenSMO.Room room ) : void
SendChatAll ( string Message, OpenSMO.Room room, User exception ) : void
Spaces ( string input, int spaceCount ) : string
UserThread ( ) : void

Private Methods

Method Description
ShowHelp ( ) : void

Method Details

AddLog() public static method

public static AddLog ( string Str, bool Bad = false ) : void
Str string
Bad bool
return void

Epoch() public method

public Epoch ( ) : long
return long

JsonSafe() public method

public JsonSafe ( string str ) : string
str string
return string

MD5() public static method

public static MD5 ( string input ) : string
input string
return string

Main() public static method

public static Main ( string args ) : void
args string
return void

MainClass() public method

public MainClass ( string args ) : System
args string
return System

RTSThread() public method

public RTSThread ( ) : void
return void

RandomString() public static method

public static RandomString ( int len, string chars = "abcdefghijklmnopqrstuvwxyz0123456789" ) : string
len int
chars string
return string

ReloadScripts() public method

public ReloadScripts ( ) : void
return void

SendChatAll() public method

public SendChatAll ( string Message ) : void
Message string
return void

SendChatAll() public method

public SendChatAll ( string Message, OpenSMO.Room room ) : void
Message string
room OpenSMO.Room
return void

SendChatAll() public method

public SendChatAll ( string Message, OpenSMO.Room room, User exception ) : void
Message string
room OpenSMO.Room
exception User
return void

Spaces() public static method

public static Spaces ( string input, int spaceCount ) : string
input string
spaceCount int
return string

UserThread() public method

public UserThread ( ) : void
return void

Property Details

Build public static property

public static int Build
return int

FPS public property

public int FPS
return int

Instance public static property

public static MainClass,OpenSMO Instance
return MainClass

Rooms public property

public List Rooms
return List

Scripting public property

public Scripting,OpenSMO Scripting
return OpenSMO.Scripting

ServerConfig public property

public Config,OpenSMO ServerConfig
return OpenSMO.Config

ServerMaxPlayers public property

public byte ServerMaxPlayers
return byte

ServerOffset public property

public byte ServerOffset
return byte

ServerVersion public property

public byte ServerVersion
return byte

StartTime public static property

public static DateTime,System StartTime
return System.DateTime

Users public property

public List Users
return List

rnd public static property

public static Random,System rnd
return System.Random

tcpListener public property

public TcpListener,System.Net.Sockets tcpListener
return System.Net.Sockets.TcpListener

tcpListenerRTS public property

public TcpListener,System.Net.Sockets tcpListenerRTS
return System.Net.Sockets.TcpListener