Glenn Maynard
89b435ef51
LuaManager::GetLuaInformation -> LuaHelpers::GetLuaInformation
2006-10-14 20:35:32 +00:00
Glenn Maynard
4276c87b67
this needs to lock, like everything else
2006-10-14 20:33:08 +00:00
Steve Checkoway
daa4b4617c
"0" is not a boolean.
2006-10-14 08:04:57 +00:00
Steve Checkoway
4195f10b80
LoadingScreen is a global.
2006-10-14 07:00:31 +00:00
Steve Checkoway
2568284699
Unbreak HighScoreForACourseAndTrail node creation.
2006-10-14 06:53:16 +00:00
Glenn Maynard
ec030b56ba
parent
2006-10-14 04:55:36 +00:00
Glenn Maynard
be34821955
send parent
2006-10-14 04:49:25 +00:00
Glenn Maynard
36813781f0
flip arg order
2006-10-14 04:48:19 +00:00
Glenn Maynard
b3b435ae5b
LoadFromNode -> LoadActorFromNode. This isn't a normal
...
LoadFromNode, which just loads state for an existing object.
pass parent
2006-10-14 04:44:15 +00:00
Glenn Maynard
cfed5e52bb
pass parent
2006-10-14 04:42:06 +00:00
Steve Checkoway
bc6fb8d7ed
Add targets for lua and luac since we build custom versions of them.
2006-10-14 04:29:32 +00:00
Glenn Maynard
5f7ae39e0a
unused
2006-10-14 04:07:46 +00:00
Glenn Maynard
52f5c12896
also for consistency (eg. so pParentActor is always applied)
2006-10-14 04:06:49 +00:00
Glenn Maynard
a48f7f39f6
for consistency
2006-10-14 04:04:48 +00:00
Glenn Maynard
df0e709c77
AtCommands not used here anymore
2006-10-14 04:02:53 +00:00
Glenn Maynard
35ca5329ec
this doesn't need to be fatal
2006-10-14 03:55:54 +00:00
Glenn Maynard
c435cdd305
not used (directly)
2006-10-14 03:52:40 +00:00
Glenn Maynard
33d0eeff0c
same style code path for BGAnimation as sprite and model
2006-10-14 03:52:11 +00:00
Glenn Maynard
bf7da90f59
bind normally; call LoadFromAniDir
2006-10-14 03:51:33 +00:00
Glenn Maynard
20450d0918
remove old
2006-10-14 03:43:29 +00:00
Glenn Maynard
394950b1eb
FileType_Invalid
2006-10-14 02:59:24 +00:00
Glenn Maynard
633adf30b7
if a path ends in a slash, it's always a directory
2006-10-14 02:57:24 +00:00
Glenn Maynard
98a752669f
remove ActorParam
2006-10-14 02:39:52 +00:00
Glenn Maynard
d879e4802a
Move LoadingScreen to a global.
...
LoadingScreen is a variable that should be available to all loading
definitions. Param does this currently, but I'm redesigning that, and this
particular case doesn't fit. Conceptually, it really is a global (though
perhaps should be tucked away with an environment or something).
2006-10-14 02:37:15 +00:00
Glenn Maynard
3ddbf641ac
fix some error messages
2006-10-14 02:27:49 +00:00
Glenn Maynard
61ba92a933
bind Warn
2006-10-14 02:26:33 +00:00
Glenn Maynard
28ff9ee684
simplify
2006-10-13 21:59:19 +00:00
Glenn Maynard
651c7ca15e
simplify; use luaL_loadbuffer
2006-10-13 20:41:33 +00:00
Glenn Maynard
47d07b3cf2
remove unused
2006-10-13 08:24:43 +00:00
Glenn Maynard
79e8594047
P.
2006-10-13 06:03:34 +00:00
Steve Checkoway
3e913de2d2
Fix warning coming from system headers. Add a newline in error messages that will likely never be emitted...
2006-10-13 05:11:54 +00:00
Glenn Maynard
933c87eb21
error handling
2006-10-13 03:36:00 +00:00
Glenn Maynard
f9c5cca641
Don't search globals.
2006-10-13 03:35:24 +00:00
Glenn Maynard
5cdf0e8d7e
Don't set globals for params. This was previously used for filenames. Use P.name.
2006-10-13 03:34:44 +00:00
Glenn Maynard
82511f9ef5
make CheckLuaObjectType protected
2006-10-12 21:23:26 +00:00
Glenn Maynard
e999775807
remove unused
2006-10-12 21:22:55 +00:00
AJ Kelly
e07e09405c
fix missing graphic
2006-10-12 19:21:50 +00:00
AJ Kelly
e991998e31
update to strings
2006-10-12 19:19:51 +00:00
Glenn Maynard
fd2ff3481c
remove special "Command" processing
2006-10-12 09:57:46 +00:00
Glenn Maynard
2c0b079412
update
2006-10-12 09:19:14 +00:00
Glenn Maynard
dd8d265975
Add a custom syntax to Lua, to handle command strings.
...
function f = cmd(a,b;c,d)
is equivalent to
function f = function(self, ...) self:a(b); self:c(d); end
This is equivalent to LuaHelpers::ParseCommandList, except:
- Commands are not lowercased. Do that yourself.
- The "parent" parameter is not included. Use self:GetParent().
- "+5" is not valid.
The benefits are:
- Better syntax checking. Running "luac" on the Lua files will do syntax
checking, and runtime syntax checks will find problems earlier.
- Easier optimization. Lua files can be compiled, and when using commands
this way, commands will be precompiled, too.
- Commands are compiled in the same scope, so upvalues work:
local foo = 10; y = cmd(x,foo);
2006-10-12 09:18:05 +00:00
Glenn Maynard
9ae99e24d9
don't care about the args themselves
2006-10-12 09:08:13 +00:00
Steve Checkoway
6f426c169a
Make sure that the correct function is actually overridden. See list.
2006-10-12 07:04:20 +00:00
Steve Checkoway
bf641a3510
Change some settings.
2006-10-12 06:45:54 +00:00
Glenn Maynard
4f52f56195
revert. I think this is just hiding the warning.
2006-10-12 02:08:55 +00:00
Glenn Maynard
eb9ab7382c
ConvertValue
2006-10-12 02:05:48 +00:00
Glenn Maynard
6c0264620e
probably safer: ConvertValue
2006-10-12 02:03:47 +00:00
Glenn Maynard
ccfa2f16dd
bOptional always true
2006-10-11 23:56:00 +00:00
Glenn Maynard
6ff22acb45
remove hacky Actor::IsType
2006-10-11 23:51:40 +00:00
Glenn Maynard
ebfdac231c
simplify; use dynamic_cast
...
(dynamic_cast is safe as long as it's used only on pointer
values; do not use it on reference types, since that can throw)
2006-10-11 23:50:41 +00:00