コード例 #1
0
    private byte AttachFullRuleSet(byte[] buf)
    {
        //Get the players on that server
        ElementTable pt = this.client.server.MySQL.FetchPlayers(gServer.InternalId, this.client.server.Config.PlayerTimeout);

        //Push the playertable onto the serverparams
        if (pt != null)
        {
            gServer.DynamicStorage.AttachDataTable(pt);
        }

        //Attach every server-property
        foreach (DataPair field in gServer.DynamicStorage.FieldList)
        {
            ConcatArray(ArrayFunctions.GetBytes(field.varName), buf, 0);
            ConcatArray(ArrayFunctions.GetBytes(field.value), buf, 0);
        }
    }