mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-14 16:14:53 +09:00
Finnished the thread system
This commit is contained in:
1 parent
c0b87ec904
commit
9df1fbb1d1
4 files changed
+40
-25
No files matched your search
+2
-2
@@ -27,10 +27,10 @@ end
|
||||
-- @usage a = 'foo'
|
||||
-- is_type(a,'string') -- return true
|
||||
-- @param v the value to be tested
|
||||
-- @tparam string test_type the type to test for
|
||||
-- @tparam[opt=nil] string test_type the type to test for if nil then it tests for nil
|
||||
-- @treturn bolean is v a matching type
|
||||
function ExpLib.is_type(v,test_type)
|
||||
return v and type(v) == test_type or false
|
||||
return test_type and v and type(v) == test_type or not test_type and not v or false
|
||||
end
|
||||
|
||||
--- Returns a value to the player or if no player then log the return
|
||||
|
||||
Reference in new issue
Block a user