This commit is contained in:
parent
2feb81322e
commit
1626aebb17
5 changed files with 21 additions and 2 deletions
|
@ -82,6 +82,9 @@ struct sExpLayerTile
|
||||||
u16 Tile;
|
u16 Tile;
|
||||||
u16 Flags;
|
u16 Flags;
|
||||||
// bool operator==(sExpLayerTile const &v1) {return (Tile==v1.Tile);}
|
// bool operator==(sExpLayerTile const &v1) {return (Tile==v1.Tile);}
|
||||||
|
//bool operator==(sExpLayerTile const &v1) {return (Tile==v1.Tile);}
|
||||||
|
bool operator ==(sExpLayerTile const &v1) {return(Tile==v1.Tile && Flags==v1.Flags);}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -697,6 +697,18 @@ sLayerThing &ThisThing=ThingList[CurrentThing];
|
||||||
GUIThingPointUpdate();
|
GUIThingPointUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
int CLayerThing::GetWidth()
|
||||||
|
{
|
||||||
|
return(theApp.GetCurrent()->GetMapWidth());
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
int CLayerThing::GetHeight()
|
||||||
|
{
|
||||||
|
return(theApp.GetCurrent()->GetMapHeight());
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -53,6 +53,9 @@ virtual void GUIKill(CCore *Core);
|
||||||
virtual void GUIUpdate(CCore *Core);
|
virtual void GUIUpdate(CCore *Core);
|
||||||
virtual void GUIChanged(CCore *Core);
|
virtual void GUIChanged(CCore *Core);
|
||||||
|
|
||||||
|
int GetWidth();
|
||||||
|
int GetHeight();
|
||||||
|
|
||||||
virtual void GUIThingDefClear(){};
|
virtual void GUIThingDefClear(){};
|
||||||
virtual void GUIThingUpdate(bool OnlySel=false){};
|
virtual void GUIThingUpdate(bool OnlySel=false){};
|
||||||
virtual void GUIThingUpdateList(CComboBox &List,bool OnlySel=false);
|
virtual void GUIThingUpdateList(CComboBox &List,bool OnlySel=false);
|
||||||
|
|
|
@ -28,6 +28,9 @@ public:
|
||||||
void GUIUpdate();
|
void GUIUpdate();
|
||||||
void GUIChanged();
|
void GUIChanged();
|
||||||
|
|
||||||
|
int GetMapWidth() {return(Core.GetMapWidth());}
|
||||||
|
int GetMapHeight() {return(Core.GetMapHeight());}
|
||||||
|
|
||||||
// Windows Messages Thru Point
|
// Windows Messages Thru Point
|
||||||
|
|
||||||
void LButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
|
void LButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||||
|
|
|
@ -854,8 +854,6 @@ void CMkLevel::WriteLayers()
|
||||||
LevelHdr.MidLayer=WriteLayer(LAYER_TYPE_TILE,LAYER_SUBTYPE_MID,"Mid");
|
LevelHdr.MidLayer=WriteLayer(LAYER_TYPE_TILE,LAYER_SUBTYPE_MID,"Mid");
|
||||||
// Action
|
// Action
|
||||||
LevelHdr.ActionLayer=WriteLayer(LAYER_TYPE_TILE,LAYER_SUBTYPE_ACTION,"Action");
|
LevelHdr.ActionLayer=WriteLayer(LAYER_TYPE_TILE,LAYER_SUBTYPE_ACTION,"Action");
|
||||||
// Fore
|
|
||||||
// LevelHdr.ForeLayer=WriteLayer(LAYER_TYPE_TILE,LAYER_SUBTYPE_FORE,"Fore");
|
|
||||||
// Collision
|
// Collision
|
||||||
LevelHdr.CollisionLayer=WriteLayer(LAYER_TYPE_COLLISION,LAYER_SUBTYPE_NONE,"Collision");
|
LevelHdr.CollisionLayer=WriteLayer(LAYER_TYPE_COLLISION,LAYER_SUBTYPE_NONE,"Collision");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue