~ubuntu-branches/debian/wheezy/mudlet/wheezy

« back to all changes in this revision

Viewing changes to .pc/luaglobal_path/src/mudlet-lua/lua/LuaGlobal.lua

  • Committer: Bazaar Package Importer
  • Author(s): Craig Small
  • Date: 2011-05-14 20:12:49 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110514201249-184gqx5jjqam02lg
Tags: 2.0-rc5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
gmcp = {}
17
17
 
 
18
function __gmcp_merge_gmcp_sub_tables( a, key )
 
19
        local _m = a.__needMerge;
 
20
        for k,v in pairs(_m) do
 
21
                a[key][k] = v;
 
22
        end
 
23
        a.__needMerge = nil
 
24
end
 
25
 
 
26
function onConnect()
 
27
end
 
28
 
 
29
function handleWindowResizeEvent()
 
30
end
 
31
 
 
32
echo("\nLOADING LuaGlobal\n")
 
33
 
18
34
local packages = {
19
35
        "StringUtils.lua",
20
36
        "TableUtils.lua",
46
62
        local result = pcall(dofile, "./mudlet-lua/lua/" .. package) or echo("Error attempting to load file: " .. package .. "\n")
47
63
end
48
64
 
49
 
function __gmcp_merge_gmcp_sub_tables( a )
50
 
        local _m = a.__needMerge;
51
 
        for k,v in pairs(_m) do
52
 
                a[k] = v;
53
 
        end
54
 
        a.__needMerge = nil
55
 
end
56
 
 
57
 
function onConnect()
58
 
end
59
 
 
60
 
function handleWindowResizeevent()
61
 
end