-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
children_count, get_child, find_child_by_name, find_child_by_tag
- Loading branch information
1 parent
3a145c7
commit 75141bc
Showing
15 changed files
with
457 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net472</TargetFramework> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<Version>0.1.1.0</Version> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net472</TargetFramework> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<Version>0.1.3.0</Version> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<ResonitePath>$(MSBuildThisFileDirectory)Resonite</ResonitePath> | ||
<ResonitePath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\Resonite\')">C:\Program Files (x86)\Steam\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('D:\Program Files (x86)\Steam\steamapps\common\Resonite\')">D:\Program Files (x86)\Steam\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('C:\SteamLibrary\steamapps\common\Resonite\')">C:\SteamLibrary\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('D:\SteamLibrary\steamapps\common\Resonite\')">D:\SteamLibrary\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')">$(HOME)/.steam/steam/steamapps/common/Resonite/</ResonitePath> | ||
<ResonitePath Condition="Exists('E:\Programs\Steam\steamapps\common\Resonite')">E:\Programs\Steam\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('F:\Steam\steamapps\common\Resonite')">F:\Steam\steamapps\common\Resonite\</ResonitePath> | ||
<ResoniteCoreLibs>$(ResonitePath)\Resonite_Data\Managed</ResoniteCoreLibs> | ||
<ResoniteNmlLibs>$(ResonitePath)\rml_libs</ResoniteNmlLibs> | ||
<ResoniteNmlMods>$(ResonitePath)\rml_mods</ResoniteNmlMods> | ||
<ResoniteLibs>$(ResonitePath)\Libraries</ResoniteLibs> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ResonitePath>$(MSBuildThisFileDirectory)Resonite</ResonitePath> | ||
<ResonitePath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\Resonite\')">C:\Program Files (x86)\Steam\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('D:\Program Files (x86)\Steam\steamapps\common\Resonite\')">D:\Program Files (x86)\Steam\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('C:\SteamLibrary\steamapps\common\Resonite\')">C:\SteamLibrary\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('D:\SteamLibrary\steamapps\common\Resonite\')">D:\SteamLibrary\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')">$(HOME)/.steam/steam/steamapps/common/Resonite/</ResonitePath> | ||
<ResonitePath Condition="Exists('E:\Programs\Steam\steamapps\common\Resonite')">E:\Programs\Steam\steamapps\common\Resonite\</ResonitePath> | ||
<ResonitePath Condition="Exists('F:\Steam\steamapps\common\Resonite')">F:\Steam\steamapps\common\Resonite\</ResonitePath> | ||
<ResoniteCoreLibs>$(ResonitePath)\Resonite_Data\Managed</ResoniteCoreLibs> | ||
<ResoniteNmlLibs>$(ResonitePath)\rml_libs</ResoniteNmlLibs> | ||
<ResoniteNmlMods>$(ResonitePath)\rml_mods</ResoniteNmlMods> | ||
<ResoniteLibs>$(ResonitePath)\Libraries</ResoniteLibs> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="0Harmony"> | ||
<HintPath>$(ResoniteNmlLibs)\0Harmony.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Elements.Assets"> | ||
<HintPath>$(ResoniteCoreLibs)\Elements.Assets.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Elements.Core"> | ||
<HintPath>$(ResoniteCoreLibs)\Elements.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="FrooxEngine"> | ||
<HintPath>$(ResoniteCoreLibs)\FrooxEngine.dll</HintPath> | ||
</Reference> | ||
<Reference Include="ProtoFlux.Core"> | ||
<HintPath>$(ResoniteCoreLibs)\ProtoFlux.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="ProtoFlux.Nodes.FrooxEngine"> | ||
<HintPath>$(ResoniteCoreLibs)\ProtoFlux.Nodes.FrooxEngine.dll</HintPath> | ||
</Reference> | ||
<Reference Include="ResoniteModLoader"> | ||
<HintPath>$(ResoniteLibs)\ResoniteModLoader.dll</HintPath> | ||
</Reference> | ||
<Reference Include="SkyFrost.Base"> | ||
<HintPath>$(ResoniteCoreLibs)\SkyFrost.Base.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Reference Include="0Harmony"> | ||
<HintPath>$(ResoniteNmlLibs)\0Harmony.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Elements.Assets"> | ||
<HintPath>$(ResoniteCoreLibs)\Elements.Assets.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Elements.Core"> | ||
<HintPath>$(ResoniteCoreLibs)\Elements.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="FrooxEngine"> | ||
<HintPath>$(ResoniteCoreLibs)\FrooxEngine.dll</HintPath> | ||
</Reference> | ||
<Reference Include="ProtoFlux.Core"> | ||
<HintPath>$(ResoniteCoreLibs)\ProtoFlux.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="ProtoFlux.Nodes.FrooxEngine"> | ||
<HintPath>$(ResoniteCoreLibs)\ProtoFlux.Nodes.FrooxEngine.dll</HintPath> | ||
</Reference> | ||
<Reference Include="ResoniteModLoader"> | ||
<HintPath>$(ResoniteLibs)\ResoniteModLoader.dll</HintPath> | ||
</Reference> | ||
<Reference Include="SkyFrost.Base"> | ||
<HintPath>$(ResoniteCoreLibs)\SkyFrost.Base.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Memory" Version="4.5.5" /> | ||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" /> | ||
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" /> | ||
<PackageReference Include="System.ValueTuple" Version="4.5.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="System.Memory" Version="4.5.5" /> | ||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" /> | ||
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" /> | ||
<PackageReference Include="System.ValueTuple" Version="4.5.0" /> | ||
</ItemGroup> | ||
|
||
<Target Name="CopyPluginLibrary" AfterTargets="PostBuildEvent" | ||
Condition="Exists($(ResoniteNmlMods))"> | ||
<Exec | ||
Command="copy "$(TargetDir)\$(TargetName).dll" "$(ResoniteNmlMods)\"" /> | ||
</Target> | ||
<Target Name="CopyPluginLibrary" AfterTargets="PostBuildEvent" | ||
Condition="Exists($(ResoniteNmlMods))"> | ||
<Exec | ||
Command="copy "$(TargetDir)\$(TargetName).dll" "$(ResoniteNmlMods)\"" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "py/obj.h" | ||
#include "py/runtime.h" | ||
|
||
#include "mp_resonite_slot.h" | ||
|
||
// Define all attributes of the module. | ||
// Table entries are key/value pairs of the attribute name (a string) | ||
// and the MicroPython object reference. | ||
// All identifiers and strings are written as MP_QSTR_xxx and will be | ||
// optimized to word-sized integers by the build system (interned strings). | ||
STATIC const mp_rom_map_elem_t resonite_module_globals_table[] = { | ||
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_resonite) }, | ||
{ MP_ROM_QSTR(MP_QSTR_Slot), MP_ROM_PTR(&resonite_Slot_type) }, | ||
}; | ||
// Create a const dict named resonite_module_globals, with content resonite_module_globals_table. | ||
STATIC MP_DEFINE_CONST_DICT(resonite_module_globals, resonite_module_globals_table); | ||
|
||
|
||
// Define module object. | ||
const mp_obj_module_t resonite_user_cmodule = { | ||
.base = { &mp_type_module }, | ||
.globals = (mp_obj_dict_t*)&resonite_module_globals, | ||
}; | ||
|
||
// Register the module to make it available in Python. | ||
MP_REGISTER_MODULE(MP_QSTR_resonite, resonite_user_cmodule); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.