Пример #1
0
 public CreatureSay(int id, SayIDList type, string name, string text)
 {
     _objectId = id;
     _type     = type;
     _charName = name;
     Text      = text;
 }
Пример #2
0
 public CreatureSay(int id, SayIDList _type, string name, string _text)
 {
     this._objectId = id;
     this._type     = _type;
     this._charName = name;
     this.Text      = _text;
 }
Пример #3
0
        public override void read()
        {
            _text = readS();
            int typeId = readD();

            if (typeId < 0 || typeId >= SayID.MaxID)
            {
                typeId = 0;
            }

            Type = SayID.getType((byte)typeId);

            if (Type == SayIDList.CHAT_TELL)
            {
                _target = readS();
            }
        }
Пример #4
0
        public Say2(Packet packet, GameClient client)
        {
            _client = client;
            _text   = packet.ReadString();
            int typeId = packet.ReadInt();

            if ((typeId < 0) || (typeId >= SayId.MaxId))
            {
                typeId = 0;
            }

            _type = SayId.getType((byte)typeId);

            if (_type == SayIDList.CHAT_TELL)
            {
                _target = packet.ReadString();
            }
        }
Пример #5
0
 public CreatureSay(SayIDList type)
 {
     _type = type;
     Text  = string.Empty;
 }
Пример #6
0
 public CreatureSay(SayIDList type, string text)
 {
     _type = type;
     Text  = text;
 }
Пример #7
0
 public CreatureSay(SayIDList _type, string _text = "")
 {
     this._type = _type;
     this.Text  = _text;
 }