2019-08-12 14:16:28 +03:00
|
|
|
//
|
2020-06-12 18:52:38 +03:00
|
|
|
// YaPB - Counter-Strike Bot based on PODBot by Markus Klinge.
|
|
|
|
|
// Copyright © 2004-2020 YaPB Development Team <team@yapb.ru>.
|
2019-08-12 14:16:28 +03:00
|
|
|
//
|
2020-06-12 18:52:38 +03:00
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU General Public License for more details.
|
2019-08-12 14:16:28 +03:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
// defines for nodes flags field (32 bits are available)
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (NodeFlag,
|
|
|
|
|
Lift = cr::bit (1), // wait for lift to be down before approaching this node
|
|
|
|
|
Crouch = cr::bit (2), // must crouch to reach this node
|
|
|
|
|
Crossing = cr::bit (3), // a target node
|
|
|
|
|
Goal = cr::bit (4), // mission goal point (bomb, hostage etc.)
|
|
|
|
|
Ladder = cr::bit (5), // node is on ladder
|
|
|
|
|
Rescue = cr::bit (6), // node is a hostage rescue point
|
|
|
|
|
Camp = cr::bit (7), // node is a camping point
|
|
|
|
|
NoHostage = cr::bit (8), // only use this node if no hostage
|
|
|
|
|
DoubleJump = cr::bit (9), // bot help's another bot (requster) to get somewhere (using djump)
|
2020-01-08 18:29:28 +03:00
|
|
|
Narrow = cr::bit (10), // node is inside some small space (corridor or such)
|
2019-08-12 14:16:28 +03:00
|
|
|
Sniper = cr::bit (28), // it's a specific sniper point
|
|
|
|
|
TerroristOnly = cr::bit (29), // it's a specific terrorist point
|
|
|
|
|
CTOnly = cr::bit (30), // it's a specific ct point
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// defines for node connection flags field (16 bits are available)
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM_TYPE (PathFlag, uint16,
|
|
|
|
|
Jump = cr::bit (0) // must jump for this connection
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// enum pathfind search type
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (FindPath,
|
|
|
|
|
Fast = 0,
|
|
|
|
|
Optimal,
|
|
|
|
|
Safe
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// defines node connection types
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (PathConnection,
|
|
|
|
|
Outgoing = 0,
|
|
|
|
|
Incoming,
|
|
|
|
|
Bidirectional
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// defines node add commands
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (GraphAdd,
|
|
|
|
|
Normal = 0,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// a* route state
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (RouteState,
|
|
|
|
|
Open = 0,
|
|
|
|
|
Closed,
|
|
|
|
|
New
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// node edit states
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (GraphEdit,
|
|
|
|
|
On = cr::bit (1),
|
|
|
|
|
Noclip = cr::bit (2),
|
|
|
|
|
Auto = cr::bit (3)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// storage header options
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (StorageOption,
|
|
|
|
|
Practice = cr::bit (0), // this is practice (experience) file
|
|
|
|
|
Matrix = cr::bit (1), // this is floyd warshal path & distance matrix
|
|
|
|
|
Vistable = cr::bit (2), // this is vistable data
|
|
|
|
|
Graph = cr::bit (3), // this is a node graph data
|
|
|
|
|
Official = cr::bit (4), // this is additional flag for graph indicates graph are official
|
|
|
|
|
Recovered = cr::bit (5), // this is additional flag indicates graph converted from podbot and was bad
|
2020-02-08 00:03:52 +03:00
|
|
|
Exten = cr::bit (6) // this is additional flag indicates that there's extension info
|
2019-08-12 14:16:28 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// storage header versions
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (StorageVersion,
|
2020-07-11 20:34:26 +03:00
|
|
|
Graph = 2,
|
2019-08-12 14:16:28 +03:00
|
|
|
Practice = 1,
|
|
|
|
|
Vistable = 1,
|
|
|
|
|
Matrix = 1,
|
|
|
|
|
Podbot = 7
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// lift usage states
|
|
|
|
|
CR_DECLARE_SCOPED_ENUM (LiftState,
|
|
|
|
|
None = 0,
|
|
|
|
|
LookingButtonOutside,
|
|
|
|
|
WaitingFor,
|
|
|
|
|
EnteringIn,
|
|
|
|
|
WaitingForTeammates,
|
|
|
|
|
LookingButtonInside,
|
|
|
|
|
TravelingBy,
|
|
|
|
|
Leaving
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// a* route
|
|
|
|
|
struct Route {
|
|
|
|
|
float g, f;
|
|
|
|
|
int parent;
|
|
|
|
|
RouteState state;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// general stprage header information structure
|
|
|
|
|
struct StorageHeader {
|
|
|
|
|
int32 magic;
|
|
|
|
|
int32 version;
|
|
|
|
|
int32 options;
|
|
|
|
|
int32 length;
|
|
|
|
|
int32 compressed;
|
|
|
|
|
int32 uncompressed;
|
|
|
|
|
};
|
|
|
|
|
|
2020-02-08 00:03:52 +03:00
|
|
|
// extension header for graph information
|
|
|
|
|
struct ExtenHeader {
|
|
|
|
|
char author[32];
|
|
|
|
|
int32 mapSize;
|
|
|
|
|
};
|
|
|
|
|
|
2019-08-12 14:16:28 +03:00
|
|
|
// general waypoint header information structure
|
|
|
|
|
struct PODGraphHeader {
|
|
|
|
|
char header[8];
|
|
|
|
|
int32 fileVersion;
|
|
|
|
|
int32 pointNumber;
|
|
|
|
|
char mapName[32];
|
|
|
|
|
char author[32];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// floyd-warshall matrices
|
|
|
|
|
struct Matrix {
|
|
|
|
|
int16 dist;
|
|
|
|
|
int16 index;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// experience data hold in memory while playing
|
|
|
|
|
struct Practice {
|
|
|
|
|
int16 damage[kGameTeamNum];
|
|
|
|
|
int16 index[kGameTeamNum];
|
|
|
|
|
int16 value[kGameTeamNum];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// defines linked waypoints
|
|
|
|
|
struct PathLink {
|
|
|
|
|
Vector velocity;
|
|
|
|
|
int32 distance;
|
|
|
|
|
uint16 flags;
|
|
|
|
|
int16 index;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// defines visibility count
|
|
|
|
|
struct PathVis {
|
|
|
|
|
uint16 stand, crouch;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// define graph path structure for yapb
|
|
|
|
|
struct Path {
|
|
|
|
|
int32 number, flags;
|
|
|
|
|
Vector origin, start, end;
|
|
|
|
|
float radius, light, display;
|
|
|
|
|
PathLink links[kMaxNodeLinks];
|
|
|
|
|
PathVis vis;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// define waypoint structure for podbot (will convert on load)
|
|
|
|
|
struct PODPath {
|
|
|
|
|
int32 number, flags;
|
|
|
|
|
Vector origin;
|
|
|
|
|
float radius, csx, csy, cex, cey;
|
|
|
|
|
int16 index[kMaxNodeLinks];
|
|
|
|
|
uint16 conflags[kMaxNodeLinks];
|
|
|
|
|
Vector velocity[kMaxNodeLinks];
|
|
|
|
|
int32 distance[kMaxNodeLinks];
|
|
|
|
|
PathVis vis;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// this structure links nodes returned from pathfinder
|
|
|
|
|
class PathWalk final : public DenyCopying {
|
|
|
|
|
private:
|
|
|
|
|
size_t m_cursor = 0;
|
|
|
|
|
Array <int, ReservePolicy::Single, kMaxRouteLength> m_storage;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit PathWalk () = default;
|
|
|
|
|
~PathWalk () = default;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
int32 &next () {
|
2019-08-12 22:51:26 +03:00
|
|
|
return at (1);
|
2019-08-12 14:16:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32 &first () {
|
2019-08-12 22:51:26 +03:00
|
|
|
return at (0);
|
2019-08-12 14:16:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32 &last () {
|
|
|
|
|
return m_storage.last ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32 &at (size_t index) {
|
2019-08-12 22:51:26 +03:00
|
|
|
return m_storage.at (m_cursor + index);
|
2019-08-12 14:16:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void shift () {
|
|
|
|
|
++m_cursor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void reverse () {
|
|
|
|
|
m_storage.reverse ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
size_t length () const {
|
|
|
|
|
if (m_cursor > m_storage.length ()) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
return m_storage.length () - m_cursor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool hasNext () const {
|
|
|
|
|
return m_cursor < m_storage.length ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool empty () const {
|
|
|
|
|
return !length ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void push (int node) {
|
|
|
|
|
m_storage.push (node);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void clear () {
|
|
|
|
|
m_cursor = 0;
|
|
|
|
|
m_storage.clear ();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// graph operation class
|
|
|
|
|
class BotGraph final : public Singleton <BotGraph> {
|
|
|
|
|
public:
|
|
|
|
|
friend class Bot;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
struct Bucket {
|
|
|
|
|
int x, y, z;
|
|
|
|
|
};
|
|
|
|
|
|
2020-07-11 20:34:26 +03:00
|
|
|
int m_version;
|
2019-08-12 14:16:28 +03:00
|
|
|
int m_editFlags;
|
|
|
|
|
int m_loadAttempts;
|
|
|
|
|
int m_cacheNodeIndex;
|
|
|
|
|
int m_lastJumpNode;
|
|
|
|
|
int m_findWPIndex;
|
|
|
|
|
int m_facingAtIndex;
|
|
|
|
|
int m_highestDamage[kGameTeamNum];
|
|
|
|
|
|
|
|
|
|
float m_timeJumpStarted;
|
|
|
|
|
float m_autoPathDistance;
|
|
|
|
|
float m_pathDisplayTime;
|
|
|
|
|
float m_arrowDisplayTime;
|
|
|
|
|
|
|
|
|
|
bool m_isOnLadder;
|
|
|
|
|
bool m_endJumpPoint;
|
|
|
|
|
bool m_jumpLearnNode;
|
|
|
|
|
bool m_hasChanged;
|
|
|
|
|
bool m_needsVisRebuild;
|
2020-01-08 18:29:28 +03:00
|
|
|
bool m_narrowChecked;
|
2019-08-12 14:16:28 +03:00
|
|
|
|
|
|
|
|
Vector m_learnVelocity;
|
|
|
|
|
Vector m_learnPosition;
|
2019-08-24 12:43:42 +03:00
|
|
|
Vector m_bombOrigin;
|
2019-08-12 14:16:28 +03:00
|
|
|
Vector m_lastNode;
|
|
|
|
|
|
|
|
|
|
IntArray m_terrorPoints;
|
|
|
|
|
IntArray m_ctPoints;
|
|
|
|
|
IntArray m_goalPoints;
|
|
|
|
|
IntArray m_campPoints;
|
|
|
|
|
IntArray m_sniperPoints;
|
|
|
|
|
IntArray m_rescuePoints;
|
|
|
|
|
IntArray m_visitedGoals;
|
|
|
|
|
|
|
|
|
|
SmallArray <int32> m_buckets[kMaxBucketsInsidePos][kMaxBucketsInsidePos][kMaxBucketsInsidePos];
|
|
|
|
|
SmallArray <Matrix> m_matrix;
|
|
|
|
|
SmallArray <Practice> m_practice;
|
|
|
|
|
SmallArray <Path> m_paths;
|
|
|
|
|
SmallArray <uint8> m_vistable;
|
|
|
|
|
|
|
|
|
|
String m_tempStrings;
|
|
|
|
|
edict_t *m_editor;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
BotGraph ();
|
|
|
|
|
~BotGraph () = default;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
int getFacingIndex ();
|
|
|
|
|
int getFarest (const Vector &origin, float maxDistance = 32.0);
|
|
|
|
|
int getNearest (const Vector &origin, float minDistance = kInfiniteDistance, int flags = -1);
|
|
|
|
|
int getNearestNoBuckets (const Vector &origin, float minDistance = kInfiniteDistance, int flags = -1);
|
|
|
|
|
int getEditorNeareset ();
|
|
|
|
|
int getDangerIndex (int team, int start, int goal);
|
|
|
|
|
int getDangerValue (int team, int start, int goal);
|
|
|
|
|
int getDangerDamage (int team, int start, int goal);
|
|
|
|
|
int getPathDist (int srcIndex, int destIndex);
|
|
|
|
|
int clearConnections (int index);
|
|
|
|
|
|
|
|
|
|
float calculateTravelTime (float maxSpeed, const Vector &src, const Vector &origin);
|
|
|
|
|
|
|
|
|
|
bool convertOldFormat ();
|
|
|
|
|
bool isVisible (int srcIndex, int destIndex);
|
|
|
|
|
bool isStandVisible (int srcIndex, int destIndex);
|
|
|
|
|
bool isDuckVisible (int srcIndex, int destIndex);
|
|
|
|
|
bool isConnected (int a, int b);
|
|
|
|
|
bool isConnected (int index);
|
|
|
|
|
bool isNodeReacheable (const Vector &src, const Vector &destination);
|
|
|
|
|
bool checkNodes (bool teleportPlayer);
|
|
|
|
|
bool loadPathMatrix ();
|
|
|
|
|
bool isVisited (int index);
|
|
|
|
|
|
|
|
|
|
bool saveGraphData ();
|
|
|
|
|
bool loadGraphData ();
|
2020-07-11 20:34:26 +03:00
|
|
|
bool canDownload ();
|
2019-08-12 14:16:28 +03:00
|
|
|
|
2020-06-12 18:52:38 +03:00
|
|
|
template <typename U> bool saveStorage (StringRef ext, StringRef name, StorageOption options, StorageVersion version, const SmallArray <U> &data, ExtenHeader *exten);
|
|
|
|
|
template <typename U> bool loadStorage (StringRef ext, StringRef name, StorageOption options, StorageVersion version, SmallArray <U> &data, ExtenHeader *exten, int32 *outOptions);
|
|
|
|
|
template <typename ...Args> bool raiseLoadingError (bool isGraph, MemFile &file, const char *fmt, Args &&...args);
|
2019-08-12 14:16:28 +03:00
|
|
|
|
|
|
|
|
void saveOldFormat ();
|
2020-09-26 18:41:53 +03:00
|
|
|
void reset ();
|
2019-08-12 14:16:28 +03:00
|
|
|
void frame ();
|
|
|
|
|
void loadPractice ();
|
|
|
|
|
void loadVisibility ();
|
|
|
|
|
void initNodesTypes ();
|
|
|
|
|
void initLightLevels ();
|
2020-01-08 18:29:28 +03:00
|
|
|
void initNarrowPlaces ();
|
2019-08-12 14:16:28 +03:00
|
|
|
void addPath (int addIndex, int pathIndex, float distance);
|
2019-08-18 21:00:00 +03:00
|
|
|
void add (int type, const Vector &pos = nullptr);
|
2019-08-12 14:16:28 +03:00
|
|
|
void erase (int target);
|
|
|
|
|
void toggleFlags (int toggleFlag);
|
|
|
|
|
void setRadius (int index, float radius);
|
|
|
|
|
void rebuildVisibility ();
|
|
|
|
|
void pathCreate (char dir);
|
|
|
|
|
void erasePath ();
|
|
|
|
|
void cachePoint (int index);
|
|
|
|
|
void calculatePathRadius (int index);
|
|
|
|
|
void savePractice ();
|
|
|
|
|
void saveVisibility ();
|
|
|
|
|
void addBasic ();
|
|
|
|
|
void eraseFromDisk ();
|
|
|
|
|
void savePathMatrix ();
|
|
|
|
|
void setSearchIndex (int index);
|
|
|
|
|
void startLearnJump ();
|
|
|
|
|
void setVisited (int index);
|
|
|
|
|
void clearVisited ();
|
|
|
|
|
void initBuckets ();
|
|
|
|
|
void addToBucket (const Vector &pos, int index);
|
|
|
|
|
void eraseFromBucket (const Vector &pos, int index);
|
2019-08-24 12:43:42 +03:00
|
|
|
void setBombOrigin (bool reset = false, const Vector &pos = nullptr);
|
2019-08-12 14:16:28 +03:00
|
|
|
void updateGlobalPractice ();
|
|
|
|
|
void unassignPath (int from, int to);
|
|
|
|
|
void setDangerValue (int team, int start, int goal, int value);
|
|
|
|
|
void setDangerDamage (int team, int start, int goal, int value);
|
|
|
|
|
void convertFromPOD (Path &path, const PODPath &pod);
|
|
|
|
|
void convertToPOD (const Path &path, PODPath &pod);
|
|
|
|
|
void convertCampDirection (Path &path);
|
2020-08-23 11:08:27 +03:00
|
|
|
void setAutoPathDistance (const float distance);
|
2020-08-31 14:52:12 +03:00
|
|
|
void showStats ();
|
2019-08-12 14:16:28 +03:00
|
|
|
|
|
|
|
|
const char *getDataDirectory (bool isMemoryFile = false);
|
|
|
|
|
const char *getOldFormatGraphName (bool isMemoryFile = false);
|
|
|
|
|
|
|
|
|
|
Bucket locateBucket (const Vector &pos);
|
|
|
|
|
IntArray searchRadius (float radius, const Vector &origin, int maxCount = -1);
|
|
|
|
|
const SmallArray <int32> &getNodesInBucket (const Vector &pos);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
int getHighestDamageForTeam (int team) const {
|
|
|
|
|
return m_highestDamage[team];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void setHighestDamageForTeam (int team, int value) {
|
|
|
|
|
m_highestDamage[team] = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char *getAuthor () const {
|
|
|
|
|
return m_tempStrings.chars ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool hasChanged () const {
|
|
|
|
|
return m_hasChanged;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool hasEditFlag (int flag) const {
|
|
|
|
|
return !!(m_editFlags & flag);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void setEditFlag (int flag) {
|
|
|
|
|
m_editFlags |= flag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void clearEditFlag (int flag) {
|
|
|
|
|
m_editFlags &= ~flag;
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-24 12:43:42 +03:00
|
|
|
const Vector &getBombOrigin () const {
|
|
|
|
|
return m_bombOrigin;
|
2019-08-12 14:16:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// access paths
|
|
|
|
|
Path &operator [] (int index) {
|
|
|
|
|
return m_paths[index];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// check nodes range
|
|
|
|
|
bool exists (int index) const {
|
|
|
|
|
return index >= 0 && index < static_cast <int> (m_paths.length ());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// get real nodes num
|
2020-06-12 18:52:38 +03:00
|
|
|
int32 length () const {
|
|
|
|
|
return m_paths.length <int32> ();
|
2019-08-12 14:16:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// check if has editor
|
|
|
|
|
bool hasEditor () const {
|
|
|
|
|
return !!m_editor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// set's the node editor
|
|
|
|
|
void setEditor (edict_t *ent) {
|
|
|
|
|
m_editor = ent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// get the current node editor
|
|
|
|
|
edict_t *getEditor () {
|
|
|
|
|
return m_editor;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2020-06-12 18:52:38 +03:00
|
|
|
// we're need `bots`
|
|
|
|
|
#include <manager.h>
|
|
|
|
|
|
|
|
|
|
// helper for reporting load errors
|
|
|
|
|
template <typename ...Args> bool BotGraph::raiseLoadingError (bool isGraph, MemFile &file, const char *fmt, Args &&...args) {
|
|
|
|
|
auto result = strings.format (fmt, cr::forward <Args> (args)...);
|
|
|
|
|
logger.error (result);
|
|
|
|
|
|
|
|
|
|
// if graph reset paths
|
|
|
|
|
if (isGraph) {
|
|
|
|
|
bots.kickEveryone (true);
|
|
|
|
|
|
|
|
|
|
m_tempStrings = result;
|
|
|
|
|
m_paths.clear ();
|
|
|
|
|
}
|
|
|
|
|
file.close ();
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-12 14:16:28 +03:00
|
|
|
// explose global
|
2020-02-08 00:03:52 +03:00
|
|
|
CR_EXPOSE_GLOBAL_SINGLETON (BotGraph, graph);
|