-
Crossplatform key-value store (string) :
Luxe.IO.string_save
/Luxe.IO.string_load
test -
Path to save to :
Luxe.IO.app_path_prefs
.Returns the app specific path to write safely into across all platforms (i.e AppData, Application Support, the iOS documents path and so on). The path is devised from your org/app name combo, i.e
<folder>/com.luxeengine/appname/ .
This file contains hidden or 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 'package:intl/date_symbol_data_local.dart'; | |
import 'package:intl/intl.dart'; | |
void main() async { | |
await initializeDateFormatting(); | |
const locale = 'iw'; | |
final DateTime now = DateTime.now(); | |
final DateFormat formatter = DateFormat('yMd', locale); |
This file contains hidden or 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 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
This file contains hidden or 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
[ | |
{ "key": "[Backquote]", "command": "type", | |
"args": { "text": "<" }, | |
"when": "editorTextFocus" }, | |
{ "key": "ctrl+[Backquote]", "command": "type", | |
"args": { "text": ">" }, | |
"when": "editorTextFocus" } | |
] |
This file contains hidden or 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
package osis; | |
import haxe.ds.IntMap; | |
import haxe.ds.Vector; | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
import haxe.Int64; | |
import anette.*; | |
import anette.Protocol; |
This file contains hidden or 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
/* __ __ _____ __ | |
* ____ ____ _/ /_/ /_ / __(_)___ ____/ /__ _____ | |
* / __ \/ __ `/ __/ __ \/ /_/ / __ \/ __ / _ \/ ___/ | |
* / /_/ / /_/ / /_/ / / / __/ / / / / /_/ / __/ / | |
* / .___/\__,_/\__/_/ /_/_/ /_/_/ /_/\__,_/\___/_/ | |
* /_/ | |
* | |
* Copyright (c) 2013, Robert Fell | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains hidden or 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 lemino.Listener; | |
using lemino.Lemino; | |
class HpView | |
{ | |
public function new() {} | |
public function onHpUpdate(value:Int, player:Player) | |
trace("hpupdate " + value); |
This file contains hidden or 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 haxe.macro.Expr; | |
import haxe.macro.Context; | |
import yaml.Yaml; | |
import yaml.Parser; | |
import yaml.util.ObjectMap; | |
class BuildComponents { | |
macro static public function build():Array<Field> { |
This file contains hidden or 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
#if macro | |
import sys.io.File; | |
#end | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
class VersionMacro | |
{ | |
macro public static function getGameVersion(projectFileName:String):Expr | |
{ |