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
cache=2 days | |
formats=png,html | |
[params] | |
start=true | |
end=true | |
path=true |
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
cache=2 days | |
formats=png,jpg,pdf,html | |
screenWidth=580 | |
[params] | |
start=true | |
end=true | |
path=true | |
token=true |
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
private typedef _SActionFunc = EntityScript -> _SA -> Void; | |
private class _SActions { | |
// Every function in this class must be of type _SActionFunc. | |
// Who knows what will happen if this is not true. | |
public static function Idle(entity:EntityScript, action:_SA):Void { | |
} | |
public static function AnotherAction(entity:EntityScript, action:_SA):Void { | |
} |
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
-- data NamedColor = Red | Green | Blue | |
-- data CustomColor = CustomColor | |
-- { r :: Int | |
-- , g :: Int | |
-- , b :: Int | |
-- } | |
-- data Color = NamedColor | CustomColor | |
create type custom_color as (r int, g int, b int); |
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
create type custom_color as (r smallint, g smallint, b smallint); | |
create type named_color as enum ('red', 'green', 'blue'); | |
create type color as (named named_color, custom custom_color); | |
create or replace function check_color(c color) returns boolean as $$ | |
begin | |
return | |
(c.named IS NOT NULL)::int + |