This commit is contained in:
parent
1966aa6f60
commit
2b171295b5
44 changed files with 588 additions and 603 deletions
|
@ -131,26 +131,3 @@ void CLayerActor::GUIChanged(CCore *Core)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/*** Functions ***************************************************************/
|
||||
/*****************************************************************************/
|
||||
void CLayerActor::ExportThing(CExport &Exp,sLayerThing &ThisThing)
|
||||
{
|
||||
int i,ListSize=ThisThing.XY.size();
|
||||
sExpLayerActor OutThing;
|
||||
// Point List
|
||||
Exp.Write(&ListSize,sizeof(int));
|
||||
for (i=0 ;i<ListSize; i++)
|
||||
{
|
||||
Exp.Write(&ThisThing.XY[i],sizeof(CPoint));
|
||||
}
|
||||
// Thing
|
||||
OutThing.Health=ThisThing.Data.Health;
|
||||
OutThing.AttackStrength=ThisThing.Data.AttackStrength;
|
||||
OutThing.Speed=ThisThing.Data.Speed;
|
||||
OutThing.TurnRate=ThisThing.Data.TurnRate;
|
||||
OutThing.CollisionFlag=ThisThing.Data.CollisionFlag;
|
||||
OutThing.PlayerFlag=ThisThing.Data.PlayerFlag;
|
||||
Exp.Write(&OutThing,sizeof(sExpLayerActor));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue