public static string GetStateName(this M2State state, Languages language) { switch (language) { case Languages.Chinese: { switch (state.State) { case E_M2_STATES.EMS_STAND: return("站立"); case E_M2_STATES.EMS_JUMP: return("跳跃"); case E_M2_STATES.EMS_ROLL: return("翻滚"); case E_M2_STATES.EMS_KNEEL: return("下跪"); case E_M2_STATES.EMS_DANCE: return("跳舞"); case E_M2_STATES.EMS_FLYINGKICK: return("飞踢"); case E_M2_STATES.EMS_EMOTEREAD: return("阅读"); case E_M2_STATES.EMS_CRANE: return("鹤立"); case E_M2_STATES.EMS_SPINNINGKICK: return("旋风腿"); case E_M2_STATES.EMS_TORPEDO: return("龙卷风"); case E_M2_STATES.EMS_WALK: return("行走"); case E_M2_STATES.EMS_RUN: return("跑步"); case E_M2_STATES.EMS_SITGROUND: return("打坐"); } } break; default: { switch (state.State) { case E_M2_STATES.EMS_STAND: return("Stand"); case E_M2_STATES.EMS_JUMP: return("Jump"); case E_M2_STATES.EMS_ROLL: return("Roll"); case E_M2_STATES.EMS_KNEEL: return("Kneel"); case E_M2_STATES.EMS_DANCE: return("Dance"); case E_M2_STATES.EMS_FLYINGKICK: return("FlyingKick"); case E_M2_STATES.EMS_EMOTEREAD: return("Read"); case E_M2_STATES.EMS_CRANE: return("Crane"); case E_M2_STATES.EMS_SPINNINGKICK: return("SpinningKick"); case E_M2_STATES.EMS_TORPEDO: return("Torpedo"); case E_M2_STATES.EMS_WALK: return("Walk"); case E_M2_STATES.EMS_RUN: return("Run"); case E_M2_STATES.EMS_SITGROUND: return("SitGround"); } } break; } return("Unknown"); }
public static string GetStateName(this M2State state, Languages language) { switch (language) { case Languages.Chinese: { switch (state.State) { case E_M2_STATES.EMS_STAND: return("站立"); case E_M2_STATES.EMS_WALK: return("行走"); case E_M2_STATES.EMS_WALKBACKWARDS: return("后退"); case E_M2_STATES.EMS_RUN: return("跑步"); case E_M2_STATES.EMS_ATTACK1H: return("单手攻击"); case E_M2_STATES.EMS_ATTACK2H: return("双手攻击"); case E_M2_STATES.EMS_SPELLOMNI: return("引导施法"); case E_M2_STATES.EMS_SPELLDIRECTED: return("目标施法"); case E_M2_STATES.EMS_ROLL: return("翻滚"); case E_M2_STATES.EMS_JUMP: return("跳跃"); case E_M2_STATES.EMS_DANCE: return("跳舞"); case E_M2_STATES.EMS_BATTLEROAR: return("怒吼"); case E_M2_STATES.EMS_SPINNINGKICK: return("旋风腿"); case E_M2_STATES.EMS_TORPEDO: return("鱼雷冲击"); case E_M2_STATES.EMS_FLYINGKICK: return("飞踢"); case E_M2_STATES.EMS_KNEEL: return("下跪"); case E_M2_STATES.EMS_EMOTEREAD: return("阅读"); case E_M2_STATES.EMS_CRANE: return("鹤立"); case E_M2_STATES.EMS_SITGROUND: return("打坐"); } } break; default: { switch (state.State) { case E_M2_STATES.EMS_STAND: return("Stand"); case E_M2_STATES.EMS_WALK: return("Walk"); case E_M2_STATES.EMS_WALKBACKWARDS: return("WalkBackwards"); case E_M2_STATES.EMS_RUN: return("Run"); case E_M2_STATES.EMS_ATTACK1H: return("Attack1Hand"); case E_M2_STATES.EMS_ATTACK2H: return("Attack2Hands"); case E_M2_STATES.EMS_SPELLOMNI: return("SpellOmni"); case E_M2_STATES.EMS_SPELLDIRECTED: return("SpellDirected"); case E_M2_STATES.EMS_ROLL: return("Roll"); case E_M2_STATES.EMS_JUMP: return("Jump"); case E_M2_STATES.EMS_DANCE: return("Dance"); case E_M2_STATES.EMS_BATTLEROAR: return("BattleRoar"); case E_M2_STATES.EMS_SPINNINGKICK: return("SpinningKick"); case E_M2_STATES.EMS_TORPEDO: return("Torpedo"); case E_M2_STATES.EMS_FLYINGKICK: return("FlyingKick"); case E_M2_STATES.EMS_KNEEL: return("Kneel"); case E_M2_STATES.EMS_EMOTEREAD: return("Read"); case E_M2_STATES.EMS_CRANE: return("Crane"); case E_M2_STATES.EMS_SITGROUND: return("SitGround"); } } break; } return("Unknown"); }