Beispiel #1
0
 public void Dispose()
 {
     DbgPrimDrawer?.Dispose();
     ChrAsm?.Dispose();
     Skeleton      = null;
     AnimContainer = null;
     MainMesh?.Dispose();
     // Do not need to dispose DummyPolyMan because it goes
     // stores its primitives in the model's DbgPrimDrawer
 }
Beispiel #2
0
 public void LoadArmorPartsbnd(IBinder partsbnd, EquipSlot slot)
 {
     if (slot == EquipSlot.Head)
     {
         HeadMesh?.Dispose();
         HeadMesh = LoadArmorMesh(partsbnd);
     }
     else if (slot == EquipSlot.Body)
     {
         BodyMesh?.Dispose();
         BodyMesh = LoadArmorMesh(partsbnd);
     }
     else if (slot == EquipSlot.Arms)
     {
         ArmsMesh?.Dispose();
         ArmsMesh = LoadArmorMesh(partsbnd);
     }
     else if (slot == EquipSlot.Legs)
     {
         LegsMesh?.Dispose();
         LegsMesh = LoadArmorMesh(partsbnd);
     }
 }