Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
6bda6b237d
@ -274,5 +274,17 @@
|
||||
"key": "bubblegroup_23",
|
||||
"text": "还以为一届好汉,原来只是鼠辈而已"
|
||||
}
|
||||
},
|
||||
{
|
||||
"KeyId": 24,
|
||||
"GroupID": 15003,
|
||||
"Type": 1,
|
||||
"TaskIDMin": 0,
|
||||
"TaskIDMax": 0,
|
||||
"weight": 10,
|
||||
"Text_Bubble": {
|
||||
"key": "bubblegroup_24",
|
||||
"text": "踢馆"
|
||||
}
|
||||
}
|
||||
]
|
722
bin/json/game_lottery.json
Normal file
722
bin/json/game_lottery.json
Normal file
@ -0,0 +1,722 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"lotteryid": 50010001,
|
||||
"description": "体力药剂",
|
||||
"type": 1,
|
||||
"groupwt": 1000,
|
||||
"groupid": 1001,
|
||||
"subtype": 1,
|
||||
"groupnum": 1,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132000",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "体力",
|
||||
"itemwt": 10000,
|
||||
"min": 50,
|
||||
"max": 50,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"lotteryid": 50010002,
|
||||
"description": "精力药剂",
|
||||
"type": 1,
|
||||
"groupwt": 1000,
|
||||
"groupid": 1001,
|
||||
"subtype": 1,
|
||||
"groupnum": 1,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132001",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "精力",
|
||||
"itemwt": 10000,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"lotteryid": 40001001,
|
||||
"description": "随机蓝色英雄",
|
||||
"type": 1,
|
||||
"groupwt": 1000,
|
||||
"groupid": 1001,
|
||||
"subtype": 1,
|
||||
"groupnum": 1,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132002",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "凤文君",
|
||||
"itemwt": 1,
|
||||
"min": 1,
|
||||
"max": 1,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"lotteryid": 40001001,
|
||||
"description": "随机蓝色英雄",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132003",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "月清",
|
||||
"itemwt": 1,
|
||||
"min": 1,
|
||||
"max": 1,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"lotteryid": 40001001,
|
||||
"description": "随机蓝色英雄",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132004",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "曹漫野",
|
||||
"itemwt": 1,
|
||||
"min": 1,
|
||||
"max": 1,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"lotteryid": 40001001,
|
||||
"description": "随机蓝色英雄",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132005",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "璐璐",
|
||||
"itemwt": 1,
|
||||
"min": 1,
|
||||
"max": 1,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"lotteryid": 40001001,
|
||||
"description": "随机蓝色英雄",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132006",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "柳名传",
|
||||
"itemwt": 1,
|
||||
"min": 1,
|
||||
"max": 1,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"lotteryid": 40001001,
|
||||
"description": "随机蓝色英雄",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132007",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "薛浅浅",
|
||||
"itemwt": 1,
|
||||
"min": 1,
|
||||
"max": 1,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"lotteryid": 40001001,
|
||||
"description": "随机蓝色英雄",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132008",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "白素素",
|
||||
"itemwt": 1,
|
||||
"min": 1,
|
||||
"max": 1,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"lotteryid": 40001001,
|
||||
"description": "随机蓝色英雄",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "132009",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "晴紫",
|
||||
"itemwt": 1,
|
||||
"min": 1,
|
||||
"max": 1,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 240,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 1,
|
||||
"groupwt": 500,
|
||||
"groupid": 1001,
|
||||
"subtype": 1,
|
||||
"groupnum": 2,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "131001",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具1",
|
||||
"itemwt": 50,
|
||||
"min": 5,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 20,
|
||||
"playerlvmax": 100,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "131002",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具2",
|
||||
"itemwt": 10,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 2,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "131003",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具3",
|
||||
"itemwt": 10,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "131004",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具4",
|
||||
"itemwt": 20,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "131005",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具5",
|
||||
"itemwt": 10,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 500,
|
||||
"groupid": 1002,
|
||||
"subtype": 1,
|
||||
"groupnum": 1,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50001",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具6",
|
||||
"itemwt": 50,
|
||||
"min": 5,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1002,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50002",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具7",
|
||||
"itemwt": 30,
|
||||
"min": 10,
|
||||
"max": 20,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1002,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50003",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具8",
|
||||
"itemwt": 10,
|
||||
"min": 20,
|
||||
"max": 40,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1002,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50004",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具9",
|
||||
"itemwt": 20,
|
||||
"min": 40,
|
||||
"max": 40,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"lotteryid": 50001001,
|
||||
"description": "随机掉落组测试1",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1002,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50005",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具10",
|
||||
"itemwt": 30,
|
||||
"min": 40,
|
||||
"max": 40,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 2,
|
||||
"groupwt": 1000,
|
||||
"groupid": 1001,
|
||||
"subtype": 1,
|
||||
"groupnum": 1,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50006",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具11",
|
||||
"itemwt": 50,
|
||||
"min": 5,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 20,
|
||||
"playerlvmax": 100,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50007",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具12",
|
||||
"itemwt": 10,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 2,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 23,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50008",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具13",
|
||||
"itemwt": 10,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50009",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具14",
|
||||
"itemwt": 20,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 25,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1001,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50010",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具15",
|
||||
"itemwt": 10,
|
||||
"min": 10,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 26,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 500,
|
||||
"groupid": 1002,
|
||||
"subtype": 2,
|
||||
"groupnum": 5,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50011",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具16",
|
||||
"itemwt": 50,
|
||||
"min": 5,
|
||||
"max": 10,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 27,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1002,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "50012",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具17",
|
||||
"itemwt": 30,
|
||||
"min": 10,
|
||||
"max": 20,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1002,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "131003",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具18",
|
||||
"itemwt": 10,
|
||||
"min": 20,
|
||||
"max": 40,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 29,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1002,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "131004",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具19",
|
||||
"itemwt": 20,
|
||||
"min": 40,
|
||||
"max": 40,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
},
|
||||
{
|
||||
"id": 30,
|
||||
"lotteryid": 50001002,
|
||||
"description": "随机掉落组测试2",
|
||||
"type": 0,
|
||||
"groupwt": 0,
|
||||
"groupid": 1002,
|
||||
"subtype": 0,
|
||||
"groupnum": 0,
|
||||
"itemid": {
|
||||
"a": "item",
|
||||
"t": "131005",
|
||||
"n": 1
|
||||
},
|
||||
"itemdes": "测试道具20",
|
||||
"itemwt": 30,
|
||||
"min": 40,
|
||||
"max": 40,
|
||||
"VIPmin": 0,
|
||||
"VIPmax": 15,
|
||||
"playerlvmin": 0,
|
||||
"playerlvmax": 0,
|
||||
"notice": 0
|
||||
}
|
||||
]
|
42
sys/configure/structs/Game.Lottery.go
Normal file
42
sys/configure/structs/Game.Lottery.go
Normal file
@ -0,0 +1,42 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
package cfg
|
||||
|
||||
type GameLottery struct {
|
||||
_dataMap map[int32]*GameLotteryData
|
||||
_dataList []*GameLotteryData
|
||||
}
|
||||
|
||||
func NewGameLottery(_buf []map[string]interface{}) (*GameLottery, error) {
|
||||
_dataList := make([]*GameLotteryData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameLotteryData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameLotteryData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _v)
|
||||
dataMap[_v.Id] = _v
|
||||
}
|
||||
}
|
||||
return &GameLottery{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||
}
|
||||
|
||||
func (table *GameLottery) GetDataMap() map[int32]*GameLotteryData {
|
||||
return table._dataMap
|
||||
}
|
||||
|
||||
func (table *GameLottery) GetDataList() []*GameLotteryData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameLottery) Get(key int32) *GameLotteryData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
69
sys/configure/structs/Game.LotteryData.go
Normal file
69
sys/configure/structs/Game.LotteryData.go
Normal file
@ -0,0 +1,69 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameLotteryData struct {
|
||||
Id int32
|
||||
Lotteryid int32
|
||||
Description string
|
||||
Type int32
|
||||
Groupwt int32
|
||||
Groupid int32
|
||||
Subtype int32
|
||||
Groupnum int32
|
||||
Itemid *Gameatn
|
||||
Itemdes string
|
||||
Itemwt int32
|
||||
Min int32
|
||||
Max int32
|
||||
VIPmin int32
|
||||
VIPmax int32
|
||||
Playerlvmin int32
|
||||
Playerlvmax int32
|
||||
Notice int32
|
||||
}
|
||||
|
||||
const TypeId_GameLotteryData = 1267925655
|
||||
|
||||
func (*GameLotteryData) GetTypeId() int32 {
|
||||
return 1267925655
|
||||
}
|
||||
|
||||
func (_v *GameLotteryData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lotteryid"].(float64); !_ok_ { err = errors.New("lotteryid error"); return }; _v.Lotteryid = int32(_tempNum_) }
|
||||
{ var _ok_ bool; if _v.Description, _ok_ = _buf["description"].(string); !_ok_ { err = errors.New("description error"); return } }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["groupwt"].(float64); !_ok_ { err = errors.New("groupwt error"); return }; _v.Groupwt = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["groupid"].(float64); !_ok_ { err = errors.New("groupid error"); return }; _v.Groupid = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["subtype"].(float64); !_ok_ { err = errors.New("subtype error"); return }; _v.Subtype = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["groupnum"].(float64); !_ok_ { err = errors.New("groupnum error"); return }; _v.Groupnum = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["itemid"].(map[string]interface{}); !_ok_ { err = errors.New("itemid error"); return }; if _v.Itemid, err = DeserializeGameatn(_x_); err != nil { return } }
|
||||
{ var _ok_ bool; if _v.Itemdes, _ok_ = _buf["itemdes"].(string); !_ok_ { err = errors.New("itemdes error"); return } }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["itemwt"].(float64); !_ok_ { err = errors.New("itemwt error"); return }; _v.Itemwt = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["min"].(float64); !_ok_ { err = errors.New("min error"); return }; _v.Min = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max"].(float64); !_ok_ { err = errors.New("max error"); return }; _v.Max = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["VIPmin"].(float64); !_ok_ { err = errors.New("VIPmin error"); return }; _v.VIPmin = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["VIPmax"].(float64); !_ok_ { err = errors.New("VIPmax error"); return }; _v.VIPmax = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["playerlvmin"].(float64); !_ok_ { err = errors.New("playerlvmin error"); return }; _v.Playerlvmin = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["playerlvmax"].(float64); !_ok_ { err = errors.New("playerlvmax error"); return }; _v.Playerlvmax = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["notice"].(float64); !_ok_ { err = errors.New("notice error"); return }; _v.Notice = int32(_tempNum_) }
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameLotteryData(_buf map[string]interface{}) (*GameLotteryData, error) {
|
||||
v := &GameLotteryData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
}
|
@ -180,6 +180,7 @@ type Tables struct {
|
||||
BreakingbadTag *GameBreakingbadTag
|
||||
Potions *GamePotions
|
||||
SellCoefficient *GameSellCoefficient
|
||||
Lottery *GameLottery
|
||||
}
|
||||
|
||||
func NewTables(loader JsonLoader) (*Tables, error) {
|
||||
@ -1201,5 +1202,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
|
||||
if tables.SellCoefficient, err = NewGameSellCoefficient(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_lottery") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.Lottery, err = NewGameLottery(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return tables, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user