You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
770 B

  1. require("luaScript.Protocol.ProtoDef")
  2. BoolPacket = defClass("BoolPacket"
  3. , defVar("boolValue", VT_Bool, false)
  4. )
  5. BytePacket = defClass("BytePacket"
  6. , defVar("byteValue", VT_UChar, 0)
  7. )
  8. ShortPacket = defClass("ShortPacket"
  9. , defVar("shortValue", VT_Short, 0)
  10. )
  11. IntPacket = defClass("IntPacket"
  12. , defVar("intValue", VT_Int, 0)
  13. )
  14. LongPacket = defClass("LongPacket"
  15. , defVar("longValue", VT_Long, 0)
  16. )
  17. StringPacket = defClass("StringPacket"
  18. , defVar("stringValue", VT_String, "")
  19. )
  20. IntListPacket = defClass("IntListPacket"
  21. , defVar("intList", VT_Vector(VT_Int))
  22. )
  23. LongListPacket = defClass("LongListPacket"
  24. , defVar("longList", VT_Vector(VT_Long))
  25. )
  26. RemainTimePacket = defClass("RemainTimePacket"
  27. , defVar("remainTime", VT_RemainTime(VT_LLong, 1), 0)
  28. )