Dont lose references to libraries
This commit is contained in:
@@ -115,7 +115,7 @@ namespace PkmnLibSharp.Library
|
||||
}
|
||||
|
||||
|
||||
internal PokemonLibrary(IntPtr ptr) : base(ptr)
|
||||
public PokemonLibrary(IntPtr ptr) : base(ptr)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -127,6 +127,13 @@ namespace PkmnLibSharp.Library
|
||||
Pkmnlib.Generated.PokemonLibrary.Construct(ref ptr, settings.Ptr, species.Ptr, moves.Ptr, items.Ptr,
|
||||
growthRates.Ptr, types.Ptr, natures.Ptr).Assert();
|
||||
Initialize(ptr);
|
||||
_settings = settings;
|
||||
_species = species;
|
||||
_moves = moves;
|
||||
_items = items;
|
||||
_growthRateLibrary = growthRates;
|
||||
_typeLibrary = types;
|
||||
_natureLibrary = natures;
|
||||
}
|
||||
|
||||
protected override void DeletePtr()
|
||||
|
||||
Reference in New Issue
Block a user