Commit 0506ac61 by Pascal Bigot

--no commit message

parent 113fdad2
......@@ -940,8 +940,10 @@ namespace CommonLib
iNbItemWithScript++;
}
}
iScreenItemMoyScriptLines = iScreenItemMoyScriptLines / iNbItemWithScript;
iMoyItemPersScreen = iMoyItemPersScreen / iNbScreen;
if (iNbItemWithScript != 0)
iScreenItemMoyScriptLines = iScreenItemMoyScriptLines / iNbItemWithScript;
if (iNbScreen != 0)
iMoyItemPersScreen = iMoyItemPersScreen / iNbScreen;
int iNbTimer = m_GestTimer.Count;
int iNbFunction = m_GestFunction.Count;
......@@ -965,7 +967,8 @@ namespace CommonLib
}
}
}
iFunctionMoyScriptLines = iFunctionMoyScriptLines / iNbTotalScriptCount;
if (iNbTotalScriptCount != 0)
iFunctionMoyScriptLines = iFunctionMoyScriptLines / iNbTotalScriptCount;
string commType = m_Comm.CommType.ToString();
}
......
......@@ -606,6 +606,16 @@ namespace CommonLib
m_strAssociateData = TraiteMessageDataDeleted(Mess, obj, m_strAssociateData);
m_strAssociateData = TraiteMessageDataRenamed(Mess, obj, m_strAssociateData);
// mais l'objet peux aussi être utilisé dans le script
switch (Mess)
{
case MESSAGE.MESS_PRE_PARSE:
if (this.m_ScriptContainer["EvtScript"].Length != 0)
this.m_iQuickScriptID = m_Executer.PreParseScript(this.m_ScriptContainer["EvtScript"]);
break;
default :
break;
}
ScriptTraiteMessage(this, Mess, this.m_ScriptContainer, obj);
}
......
......@@ -264,6 +264,8 @@ namespace CommonLib
string.Format("Executing func {0}", QuickScript[i].m_Arguments[0].Symbol));
if (Id != 0) //un ID a 0 signifie que le script est vide
InternalExecuteScript(Id);
else
System.Diagnostics.Debug.Assert(false);
break;
case SCR_OBJECT.LOGIC:
QuickExecuteLogic(QuickScript[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment