Interface WritableIntValueHolder

All Known Implementing Classes:
RecvPacketOpcode, SendPacketOpcode

public interface WritableIntValueHolder
可讀寫 short 整數值的通用持有者介面,供 opcode 列舉實作。

RecvPacketOpcodeSendPacketOpcode 皆實作此介面; ExternalCodeTableGetter.populateValues(Properties, T[]) 在伺服器啟動時讀取 recv.properties / send.properties,並以 setValue(short) 將實際 opcode 數值注入各列舉常數, 預設值為 -2(表示未載入)。

  • Method Summary

    Modifier and Type
    Method
    Description
    short
     
    void
    setValue(short newval)
     
  • Method Details

    • getValue

      short getValue()
    • setValue

      void setValue(short newval)