|
|
@@ -171,6 +171,18 @@ namespace GamecraftModdingAPI.Blocks |
|
|
|
return list.ToArray(); |
|
|
|
} |
|
|
|
|
|
|
|
public EGID? FindBlockEGID(uint id) |
|
|
|
{ |
|
|
|
var groups = entitiesDB.FindGroups<DBEntityStruct>(); |
|
|
|
foreach (ExclusiveGroupStruct group in groups) |
|
|
|
{ |
|
|
|
if (entitiesDB.Exists<DBEntityStruct>(id, group)) |
|
|
|
return new EGID(id, group); |
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Synchronize newly created entity components with entities DB. |
|
|
|
/// This forces a partial game tick, so it may be slow. |
|
|
|