Skip to content

Instantly share code, notes, and snippets.

View citizenll's full-sized avatar
💤
Focusing

citizenl citizenll

💤
Focusing
View GitHub Profile
@citizenll
citizenll / binary_heap.gd
Created May 30, 2023 02:07
Godot binaryHeap implement
class_name BinaryHeap
var items:Array = []
var sort_func:Callable
func _init(initial_items=null, custom_sort=null):
if custom_sort != null:
sort_func = custom_sort
else:
sort_func = time_sort_func
@citizenll
citizenll / fairygui-puerts-example.ts
Last active August 29, 2022 09:02
FairyGUI Puerts component tool
import { FairyGUI } from "csharp";
import View, { Bind, Component } from "../common/fairygui";
// ${pakageName/componentName}
@Component("home/HomePage")
export class LandPage extends View {
@Bind//使用跟编辑器里相同的名字进行绑定普通组件
public nameTxt:FairyGUI.GLabel
//@Trans 绑定特效