Memb<Game::Waypoint *> weg;
void GetWaypoints(CChar *path)
{
Str8 name = Replace(path, S + "world/sample.world/Game/Waypoint", S);
if (Contains(name, "Weg"))
weg.New() = Game::World.getWaypoint(name);
}
/******************************************************************************/
void Player::create(Game::ObjParams &obj)
{
__super::create(obj);
}
Bool Init()
{
Text_ds.scale*=0.8;
Physics.create();
Sky .atmospheric();
Sun.image=Images("gfx/sky/sun.gfx"); Sun.light_color=1-D.ambColor();
Game::World.init( )
.setObjType(Players,OBJ_PLAYER)
.New ("world/sample.world");
FAll("world/sample.world/Game/Waypoint", GetWaypoints, true);
return true;
}