mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
start on models
This commit is contained in:
1 parent
85ddedd481
commit
0507f63177
5 files changed
+68
-3
No files matched your search
@@ -100,4 +100,18 @@ public partial class GameInterface
|
||||
var icon = pda.Get<FSoftObjectPath>("Icon");
|
||||
return provider.Image(icon);
|
||||
}
|
||||
|
||||
|
||||
private readonly string[] tankPartEntries = ["DT_Chassis", "DT_Hulls", "DT_Turrets", "DT_Guns"];
|
||||
public byte[] TankPart(string tag, string part)
|
||||
{
|
||||
var pda = provider.Discovered<UPrimaryDataAsset>(tag);
|
||||
|
||||
foreach (var entry in tankPartEntries) {
|
||||
pda.Get<FSoftObjectPath>(entry);
|
||||
// var icon = pda.Get<FSoftObjectPath>("Icon");
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user