Commit Graph
2038 Commits
Author SHA1 Message Date
Glenn Maynard 3c2d96054d convert to Lua; this one creates several actors cleanly, and uses upvalues 2006-10-15 08:03:18 +00:00
Glenn Maynard 329e2ea4a1 Type -> Class 2006-10-15 06:01:44 +00:00
Glenn Maynard 16ee8fec3a IsRegisteredClass 2006-10-15 05:58:54 +00:00
Glenn Maynard 68064ec6aa Always use a real type with Def; don't say "Def.Layer". If you don't
know the type you're using, you should be using LoadActor.
2006-10-15 05:56:30 +00:00
Glenn Maynard d38897a6fd This code creates actors, then loads nodes with their parameters
later.  Make this less of a special case: load the node normally,
and check that the resulting actor is the wanted type.
2006-10-15 05:53:26 +00:00
Glenn Maynard 116db99a92 The "Def.Type { }" syntax is for defining actors by type,
like ActorUtil::Create.  Most of the time, use LoadActor,
which is for loading files by filename, like ActorUtil::MakeActor.

(If you're creating "a Model with these parameters", use Def.Model.
If you're just loading "this other filename, whatever it is",
use LoadActor.)
2006-10-15 05:51:23 +00:00
Glenn Maynard 5a3a5a926f save before commit 2006-10-15 05:08:29 +00:00
Glenn Maynard 6a8fb25435 convert to Lua
This doesn't actually need to be two files anymore.  Previously, XML
forced us to split actors apart at a finer level than was natural.  This could
be merged into a single file easily now, but I've left it as two for now for
demonstration and testing purposes.
2006-10-15 05:06:31 +00:00
Glenn Maynard b0e5b201e3 move actor definition stuff into ActorDef.lua
handle loading other definitions
2006-10-15 05:02:58 +00:00
Glenn Maynard 285b1db112 debug.traceback in a more natural format for me 2006-10-15 02:55:21 +00:00
Glenn Maynard 32e6fe6198 license 2006-10-15 02:53:11 +00:00
Glenn Maynard 95cf160912 usable loadfile/dofile 2006-10-15 02:52:04 +00:00
Glenn Maynard f7bb9fe3a4 change DeepCopy(table) to DeepCopy(from,to) 2006-10-15 01:36:50 +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
AJ Kelly e07e09405c fix missing graphic 2006-10-12 19:21:50 +00:00
Glenn Maynard 2c0b079412 update 2006-10-12 09:19:14 +00:00
Glenn Maynard 9ae99e24d9 don't care about the args themselves 2006-10-12 09:08:13 +00:00
Glenn Maynard 98fd2986c9 update examples 2006-10-11 02:04:49 +00:00
Glenn Maynard 0c74193c2c use Def 2006-10-09 07:32:39 +00:00
Glenn Maynard 5eafec5ab8 fixup 2006-10-09 07:32:26 +00:00
Glenn Maynard c8e76b5048 add Def{} helper.
(This uses the debug API.  This particular use seems OK, but maybe
should be abstracted.)
2006-10-09 07:30:48 +00:00
Glenn Maynard e2aaa1841e first-pass test/example case: actor descriptions in Lua 2006-10-09 05:52:33 +00:00
Glenn Maynard 2e3b047880 fix demo 2006-10-09 00:38:27 +00:00
Glenn Maynard 4ccea4e87b phase out separate course difficulty names 2006-10-07 22:49:04 +00:00
Glenn Maynard b4102e79c6 phase out separate course difficulty names 2006-10-07 22:42:47 +00:00
Glenn Maynard fca0a40bf8 fix comparing enum values with nil (invalid > all other enum values) 2006-10-05 23:14:38 +00:00
Glenn Maynard 02635f3653 enum helpers 2006-10-05 23:12:59 +00:00
Glenn Maynard ee2d17a64f fix loop 2006-10-05 23:10:00 +00:00
Glenn Maynard e3a21ae5b7 script fixups 2006-10-05 20:51:13 +00:00
Steve Checkoway 2af7999542 Fix crash. 2006-10-01 03:48:07 +00:00
Glenn Maynard 4e290c0b40 aliases 2006-09-26 22:12:31 +00:00
Glenn Maynard f17afb07fd update branch 2006-09-26 21:36:34 +00:00
Glenn Maynard 662606b1c8 renames 2006-09-26 21:16:57 +00:00
Glenn Maynard 524bbc810e aliases 2006-09-26 20:02:14 +00:00
Glenn Maynard cc49e8d56d use bound types 2006-09-26 09:09:38 +00:00
Glenn Maynard 5d6be12093 update bindings 2006-09-26 08:26:49 +00:00
Glenn Maynard 444dd8afbb update binding 2006-09-26 07:01:39 +00:00
Glenn Maynard d000ab254e update 2006-09-26 04:48:09 +00:00
Glenn Maynard 1dbb7e49b7 update 2006-09-26 04:32:38 +00:00
Glenn Maynard 5d9206fee3 didn't mean to rename this 2006-09-26 04:31:25 +00:00
Glenn Maynard 3dac292642 update ModsLevel use 2006-09-26 04:03:59 +00:00
Glenn Maynard 58882b82f7 update GetBestFinalGrade use 2006-09-26 03:58:54 +00:00
Glenn Maynard 39ac2da962 ThemeMetric<Grade>, ThemeMetric<TapNoteScore> 2006-09-26 03:30:20 +00:00
Glenn Maynard 2fbe882366 ThemeMetric<EditMode> 2006-09-26 03:19:37 +00:00
Glenn Maynard af26ddff7a rename 2006-09-26 03:08:03 +00:00
Glenn Maynard 004e1a9eb7 update PlayMode 2006-09-26 03:06:00 +00:00
Steve Checkoway 56186f2bee Missing strings. 2006-09-25 01:59:10 +00:00
Steve Checkoway 883b45a8df Maybe these should stay as strings. For now just make them work. 2006-09-23 19:19:41 +00:00
Glenn Maynard 208b84e02e DebugOffCommand 2006-09-23 03:46:03 +00:00