05.08.2006, 21:40:10
So your assembler can't assemble "mov eax,cr0" or "lgdt fword ptr" xxxx
But better add script compiler directly in EXE.
Named it "C&C Script"
Example:
[CnCScriptTypes]
1=OnCreateHARV
2=OnDestroyHARV
3=OnAttackingHARV
....
[HARV]
OnCreate=OnCreateHARV
OnDestory=OnDestroyHARV
Speed=4
...
[OnCreateHARV]
ScriptType=...
...
0=BEGIN_SCRIPT
1=ShowMessage('Hello world');
2=END_SCRIPT
...
[OnAttackingHARV]
ScriptType=...
...
0=BEGIN_SCRIPT
1=SetMoveTarget(GetBaseCenter(@Player))
2=END_SCRIPT
@Player - variable as "this" in C++
What you thing about it?
Quote:if you could make YR read a list of dlls to load, I could implement callers at many places in the exe, which would then be known as "events".It's very simple
But better add script compiler directly in EXE.
Named it "C&C Script"
Example:
[CnCScriptTypes]
1=OnCreateHARV
2=OnDestroyHARV
3=OnAttackingHARV
....
[HARV]
OnCreate=OnCreateHARV
OnDestory=OnDestroyHARV
Speed=4
...
[OnCreateHARV]
ScriptType=...
...
0=BEGIN_SCRIPT
1=ShowMessage('Hello world');
2=END_SCRIPT
...
[OnAttackingHARV]
ScriptType=...
...
0=BEGIN_SCRIPT
1=SetMoveTarget(GetBaseCenter(@Player))
2=END_SCRIPT
@Player - variable as "this" in C++
What you thing about it?
ARM forever - x86 sucks!