reimplement animations

This commit is contained in:
ntr
2019-12-18 16:32:29 +10:00
parent 14ddc0b237
commit 90bffcb6b7
8 changed files with 161 additions and 188 deletions
+4 -6
View File
@@ -53,7 +53,7 @@ use mnml_core::player::Player;
use mnml_core::vbox::{ItemType};
use mnml_core::item::Item;
use mnml_core::skill::Skill;
// use mnml_core::skill::{dev_resolve, Resolutions};
use mnml_core::mob::{anim_test_game};
use mnml_core::instance::{Instance};
use mtx;
@@ -88,8 +88,6 @@ pub enum RpcMessage {
Pong(()),
// DevResolutions(Resolutions),
QueueRequested(()),
QueueJoined(()),
QueueLeft(()),
@@ -108,7 +106,7 @@ pub enum RpcMessage {
pub enum RpcRequest {
Ping {},
ItemInfo {},
DevResolve { a: Uuid, b: Uuid, skill: Skill },
DevResolve { skill: Skill },
MtxConstructApply { mtx: mtx::MtxVariant, construct_id: Uuid, name: String },
MtxConstructSpawn { },
@@ -171,8 +169,8 @@ impl Connection {
match v {
RpcRequest::Ping {} => return Ok(RpcMessage::Pong(())),
RpcRequest::ItemInfo {} => return Ok(RpcMessage::ItemInfo(item_info())),
// RpcRequest::DevResolve {a, b, skill } =>
// return Ok(RpcMessage::DevResolutions(dev_resolve(a, b, skill))),
RpcRequest::DevResolve { skill } =>
return Ok(RpcMessage::GameState(anim_test_game(skill))),
_ => (),
};