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
import type { Navigator } from '@solidjs/router'; | |
import { Auth0Client, createAuth0Client } from '@auth0/auth0-spa-js'; | |
import jwtDecode, { InvalidTokenError, JwtPayload } from 'jwt-decode'; | |
import { createRoot, createSignal } from 'solid-js'; | |
import { applicationUtils, GlobalVariable } from '$/utils/application'; | |
const domain = applicationUtils.getGlobalVariable(GlobalVariable.AUTH0_DOMAIN); | |
const clientId = applicationUtils.getGlobalVariable(GlobalVariable.AUTH0_CLIENT_ID); |
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
using System.Collections.Generic; | |
using UnityEngine; | |
namespace UGPXFramework { | |
public class AIController { | |
private DynamicBlackboard _blackboard = new DynamicBlackboard(); | |
private List<IAIScan> _scans = new List<IAIScan>(); | |
private List<IAIAction> _actions = new List<IAIAction>(); | |
public AIController(GameObject gameObject) { |
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
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
# Exclude 3rd party libraries installed from the assets store | |
[Aa]ssets/Asset Store Resources/ | |
# Some asset tools can't be moved so need to explicitly |
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
// PATTERN | |
// avoid popup blocker when you need async code when opening new tab\ | |
// NOTE: the downside to this approach it the the user will see a blank page until the async method finished but instead of opening | |
// NOTE: to a blank page, you could probably have a redirect page that has animation or something | |
//first have a method that does the async functionality and get passed in the new tab window | |
const doRedirect = async (newWindow) => { | |
try { | |
const redirectUrl = await api.getRedirectUrl(); |
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
// @example scrolling example | |
case SDL_MOUSEMOTION: | |
{ | |
bool mouseInUiNow = isInRect(sideUiBackground, event.motion.x, event.motion.y); | |
if (mouseInUiNow && !mouseInUi) { | |
mouseInUi = true; | |
} else if (!mouseInUiNow && mouseInUi) { | |
mouseInUi = false; | |
} |
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
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |