metagen/tests/meta/DataAll.meta

63 lines
1.1 KiB
Plaintext

func GetPlayer(
id : uint32
) : DataPlayer
func Apply(
fn : func(float, DataPlayer) : uint32
)
struct DataPlayer
@POD @table:player @pkey:id
id : uint32
version : string @strmax:16
gold : uint8 @default:0 #bonus
registered : bool @default:true
func Equals(
@bhl_ret_type:bool,bool
o : DataPlayer
v : uint32
) : bool,bool
end
struct ProtoTags
children : ProtoBase[]
tags : string[]
end
struct ProtoBase
id : uint32
title : string @strmax:16 @default:"`'Hello"
end
struct ProtoBuilding extends ProtoBase
floors : int32
arr : uint32[] @default:[1,2,3]
end
struct ProtoMan
left_hand : ConfHand
right_hands : ConfHand[] @default:[{"fingers": 1, "skill": 100}]
end
struct ConfHand
fingers : uint32
fingers2 : uint32 @default:77
skill : uint32
end
RPC 10 GET_ALL_PROTO(
ticket : string @strmax:128
)
list : ProtoBase[] @virtual
end
enum EnumStock
GOLD = 108683766 # @stock/gold
XP = 90110385 # @stock/xp
end
struct ConfStock
id : EnumStock
end