Skip to content

Commit

Permalink
更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
robincodex committed Feb 13, 2023
1 parent 266453a commit afad0bf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
7 changes: 7 additions & 0 deletions addon/game/solid-example/scripts/custom_net_tables.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- kv3 encoding:text:version{e21c7f3c-8a33-41c5-9977-a76d3a32aa0d} format:generic:version{7412167c-06e9-4698-aff2-e63eb59037e7} -->
{
custom_net_tables =
[
"test",
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ end

-- Evaluate the state of the game
function CAddonTemplateGameMode:OnThink()
if GameRules:State_Get() == DOTA_GAMERULES_STATE_GAME_IN_PROGRESS then
--print( "Template addon script is running." )
elseif GameRules:State_Get() >= DOTA_GAMERULES_STATE_POST_GAME then
return nil
end
CustomNetTables:SetTableValue("test", "test", {a = RandomInt(0,100)})
return 1
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"sass": "^1.56.1",
"solid-js": "^1.6.2",
"solid-panorama-all-in-jsx": "^0.2.5",
"solid-panorama-polyfill": "^0.1.7",
"solid-panorama-polyfill": "^0.1.8",
"solid-panorama-runtime": "^0.2.9",
"ts-node": "^10.9.1",
"typescript": "~4.9.3",
Expand Down
7 changes: 1 addition & 6 deletions scripts/custom-polyfill.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
var polyfillModule = (function () {
return {
default: global => {
// global.x = 1
}
};
!(function () {
})();
4 changes: 4 additions & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ declare function useTimer(
deps?: any
): void;
declare function useTimer(callback: () => number | undefined, deps?: any): void;

interface CustomNetTableDeclarations {
test: {};
}

0 comments on commit afad0bf

Please sign in to comment.