public static bool GetResult(out ScriptRuntime.Vector4 res) { object obj; bool ret = GetResult(out obj); res = (ScriptRuntime.Vector4)obj; return(ret); }
private void UpdateAnimation() { if (!CanAffectPlayerSelf) { return; } if (null != m_Npc) { if (ObjectInfo.IsGfxAnimation) { m_CharacterAnimationInfo.Reset(); return; } if (m_Npc.CanControl && m_Npc.ControllerObject == null) { PlayAnimation(Animation_Type.AT_SLEEP); return; } if (m_Npc.NpcType == (int)NpcTypeEnum.InteractiveNpc && m_Npc.IsHaveStateFlag(CharacterState_Type.CST_Opened)) { if (!IsAnimationInited(Animation_Type.AT_SkillSection2)) { InitAnimation(Animation_Type.AT_SkillSection2, false); } PlayAnimation(Animation_Type.AT_SkillSection2); return; } if (m_Npc.IsBorning) { UpdateBornAnimation(); } UpdateMoveAnimation(); //UpdateBeAttacked(); //UpdateDead(); UpdateIdle(); HilightType hi = m_Npc.GetHilightType(); if (hi != m_LastHilightType) { Hilight(hi); m_LastHilightType = hi; } if (!m_Npc.IsHilightColorShowed) { ScriptRuntime.Vector4 color = m_Npc.GetHilightColor(); Hilight(color); m_Npc.IsHilightColorShowed = true; } } }
private void Init() { m_NormalColor = new ScriptRuntime.Vector4(1, 1, 1, 1); m_BurnColor = new ScriptRuntime.Vector4(0.75f, 0.2f, 0.2f, 1); m_FrozonColor = new ScriptRuntime.Vector4(0.2f, 0.2f, 0.75f, 1); m_ShineColor = new ScriptRuntime.Vector4(0.2f, 0.75f, 0.2f, 1); m_Actor = 0; m_CurActionConfig = null; m_CurWeaponType = -2; }
static public int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); ScriptRuntime.Vector4 o; if (argc == 5) { System.Single a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); System.Single a3; checkType(l, 4, out a3); System.Single a4; checkType(l, 5, out a4); o = new ScriptRuntime.Vector4(a1, a2, a3, a4); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 4) { ScriptRuntime.Vector2 a1; checkValueType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); System.Single a3; checkType(l, 4, out a3); o = new ScriptRuntime.Vector4(a1, a2, a3); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 3) { ScriptRuntime.Vector3 a1; checkValueType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); o = new ScriptRuntime.Vector4(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 2) { System.Single a1; checkType(l, 2, out a1); o = new ScriptRuntime.Vector4(a1); pushValue(l, true); pushValue(l, o); return(2); } else if (argc <= 1) { o = new ScriptRuntime.Vector4(); pushValue(l, true); pushObject(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } }
protected void Hilight(ScriptRuntime.Vector4 color) { //Actor.SetColor(color); }