Example #1
0
 public void Initialize(ServerWorld world, ServerStateSettings settings)
 {
     _world    = world;
     _settings = (LoadServerRoomSettings)settings;
     _settings.Hide();
     _transitionState = ServerStateId.NO_TRANSITION;
 }
    public void Initialize(ServerWorld world, ServerStateSettings settings)
    {
        _world   = world;
        _network = _world.GetServerNode();

        _settings = (LaunchServerSettings)settings;
        _settings.Hide();

        _transitionState = ServerStateId.NO_TRANSITION;
    }
    public void Initialize(ServerWorld world, ServerStateSettings settings)
    {
        _world   = world;
        _network = _world.GetServerNode();

        _settings = (HostingSettings)settings;
        _settings.Hide();
        _transitionState = ServerStateId.NO_TRANSITION;

        int maxChars = _network.GetMaxMessageLength() / sizeof(char);

        _charBuffer = new char[maxChars];
        _sb         = new StringBuilder(maxChars);

        if (_settings.randomSeed != 0)
        {
            _random = new Random(_settings.randomSeed);
        }
        else
        {
            _random = new Random();
        }
    }