X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FAnimation.cc;h=593f44e1aff3df4a492ed2c277bfa91cd46704ff;hp=ab178df6f9850a27b0d94e36aad786fc40f3c439;hb=7f3984f3f9524f5b6813e01ceb2fe576dadff94e;hpb=99ac607f489023a7aa17bfb046113b0e4a65dab6 diff --git a/src/Animation.cc b/src/Animation.cc index ab178df..593f44e 100644 --- a/src/Animation.cc +++ b/src/Animation.cc @@ -78,7 +78,7 @@ class Animation::Impl * frame map which is probably loaded within an animation file. */ - Frame(Mf::Script& script, Mf::Script::Value table) : + Frame(Mf::Script& script, Mf::Script::Slot table) : mIndex(0), mDuration(1.0) { @@ -114,7 +114,7 @@ class Animation::Impl * constructor which loads each individual frame. */ - Sequence(Mf::Script& script, Mf::Script::Value table) : + Sequence(Mf::Script& script, Mf::Script::Slot table) : mDelay(0.0), mLoop(true) { @@ -133,10 +133,10 @@ class Animation::Impl // TODO - sequence class/type not yet implemented table.pushField("frames"); - Mf::Script::Value frameTable = script.getTop(); + Mf::Script::Slot frameTable = script.getTop(); if (frameTable.isTable()) { - Mf::Script::Value top = script[-1]; + Mf::Script::Slot top = script[-1]; int index = 1; for (;;) @@ -174,14 +174,14 @@ class Animation::Impl { std::string str; script[-1].get(str); - Mf::logScript("%s", str.c_str()); + Mf::logWarning(str); } } int defineSequence(Mf::Script& script) { - Mf::Script::Value name = script[1].requireString(); - Mf::Script::Value table = script[2].requireTable(); + Mf::Script::Slot name = script[1].requireString(); + Mf::Script::Slot table = script[2].requireTable(); std::string nameStr; name.get(nameStr);