| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- using Luban;
- using SimpleJSON;
- namespace cfg
- {
- public partial struct ItemBundle
- {
- public ItemBundle(JSONNode _buf)
- {
- { if(!_buf["item_type"].IsNumber) { throw new SerializationException(); } ItemType = (BillItem.BILL_TYPE)_buf["item_type"].AsInt; }
- { if(!_buf["amount"].IsNumber) { throw new SerializationException(); } Amount = _buf["amount"]; }
- }
- public static ItemBundle DeserializeItemBundle(JSONNode _buf)
- {
- return new ItemBundle(_buf);
- }
- public readonly BillItem.BILL_TYPE ItemType;
- public readonly int Amount;
-
- public void ResolveRef(Tables tables)
- {
- }
- public override string ToString()
- {
- return "{ "
- + "itemType:" + ItemType + ","
- + "amount:" + Amount + ","
- + "}";
- }
- }
- }
|