public ActionHandler.Result ApplyAction(ActionSingle action, GameInstance firer) { if (handlers.ContainsKey(action.Type)) { string[] values = ExtractValues(action.param, "param"); ActionHandler.Result result = handlers[action.Type](action.value, firer, values); if (result != null && result.statusType != null) { status.Change(result.statusType, result.value); } return result; } return null; }
public ActionHandler.Result ApplyAction(ActionSingle action, GameInstance firer) { if (actionHandler != null) { return actionHandler.ApplyAction(action, null); } return null; }
public ActionHandler.Result ApplyAction(ActionSingle action, GameInstance firer) { return actionHandler.ApplyAction(action, firer); }