///////////protocol void ack_itemuse(int err, wire obj) { if (err != 0) //TODO: show messagebox { return; } a_itemuse ack = (a_itemuse)obj; Module.Role.Basic.hp = ack.hp; Module.UI.role.RefreshRole(); }
void Start() { OnEnter(); a_itemuse itemuse = new a_itemuse(); a_movepoint movepoint = new a_movepoint(); a_movediff movediff = new a_movediff(); a_moveenter moveenter = new a_moveenter(); a_moveleave moveleave = new a_moveleave(); a_attack attack = new a_attack(); a_gatekick kick = new a_gatekick(); Register(itemuse, ack_itemuse); Register(movepoint, ack_movepoint); Register(movediff, ack_movediff); Register(moveenter, ack_moveenter); Register(moveleave, ack_moveleave); Register(attack, ack_attack); Register(kick, ack_gatekick); }