Skip to content

Commit d4b7091

Browse files
committed
Merge branch 'dev'
2 parents 64f5804 + 9600136 commit d4b7091

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+656
-404
lines changed
6.48 KB
Loading
10.7 KB
Loading
10.9 KB
Loading
10.5 KB
Loading
9.19 KB
Loading
9.11 KB
Loading
4.45 KB
Loading
8.45 KB
Loading
10 KB
Loading

game/common/idgenerator.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
local IDGenerator = require 'lux.class' :new{}
33

4-
local ID_BASE = 1000
5-
local ID_FORMAT = "#%d"
4+
local ID_BASE = 0
5+
local ID_FORMAT = "#%04d"
66

7-
function IDGenerator:instance(obj, first_id)
7+
function IDGenerator:instance(obj, first_id) -- luacheck: no self
88

99
local _next_id = first_id or 1
1010

0 commit comments

Comments
 (0)