|
|
@@ -104,11 +104,21 @@ namespace GamecraftModdingAPI.Blocks |
|
|
|
|
|
|
|
public bool BlockExists(EGID id) |
|
|
|
{ |
|
|
|
if (!Synced) |
|
|
|
{ |
|
|
|
Sync(); |
|
|
|
Synced = true; |
|
|
|
} |
|
|
|
return entitiesDB.Exists<DBEntityStruct>(id); |
|
|
|
} |
|
|
|
|
|
|
|
public bool GetBlockInfoExists<T>(EGID blockID) where T : struct, IEntityComponent |
|
|
|
{ |
|
|
|
if (!Synced) |
|
|
|
{ |
|
|
|
Sync(); |
|
|
|
Synced = true; |
|
|
|
} |
|
|
|
return entitiesDB.Exists<T>(blockID); |
|
|
|
} |
|
|
|
|
|
|
|