mirror of
https://port.numenaute.org/aleajactaest/clientbot.git
synced 2024-11-17 04:52:02 +00:00
40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
|
#!/usr/bin/python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
#
|
||
|
# module CMainlandSummary
|
||
|
#
|
||
|
# Copyright (C) 2019 AleaJactaEst
|
||
|
#
|
||
|
# This program is free software: you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation, either version 3 of the License, or
|
||
|
# (at your option) any later version.
|
||
|
#
|
||
|
# This program is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
# GNU General Public License for more details.
|
||
|
#
|
||
|
# You should have received a copy of the GNU General Public License
|
||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
||
|
from tools import CSessionId
|
||
|
|
||
|
|
||
|
class CMainlandSummary():
|
||
|
def __init__(self):
|
||
|
self.Id = CSessionId.CSessionId()
|
||
|
self.Name = ""
|
||
|
self.Description = ""
|
||
|
self.LanguageCode = ""
|
||
|
self.Online = False
|
||
|
def read(self, msgin):
|
||
|
'''
|
||
|
khanat-opennel-code/code/ryzom/common/src/game_share/mainland_summary.h # void serial(NLMISC::IStream &f)
|
||
|
'''
|
||
|
self.Id.read(msgin)
|
||
|
self.Name = msgin.readUString('Name')
|
||
|
self.Description = msgin.readUString('Description')
|
||
|
self.LanguageCode = msgin.readString('LanguageCode')
|
||
|
self.Online = msgin.readBool('Online')
|