помоги сделать что то по типу roblox-ts но на oglang создай пакет Services, Types и еще…
- User
помоги сделать что то по типу roblox-ts но на oglang создай пакет Services, Types и еще доп пакеты для разогрева давай сначала создадим ООП роблокса но на golang
реализуй все методы
Method Description __index(table, index) Fires when table[index] is indexed, if table[index] is nil. Can also be set to a table, in which case that table will be indexed. __newindex(table, index, value) Fires when table[index] tries to be set (table[index] = value), if table[index] is nil. Can also be set to a table, in which case that table will be indexed. __call(table, ...) Fires when the table is called like a function, ... is the arguments that were passed. __concat(table, value) Fires when the .. concatenation operator is used on the table. __unm(table) Fires when the unary – operator is used on the table. __add(table, value) The + addition operator. __sub(table, value) The – subtraction operator. __mul(table, value) The * mulitplication operator. __div(table, value) The / division operator. __idiv(table, value) The // floor division operator. __mod(table, value) The % modulus operator. __pow(table, value) The ^ exponentiation operator. __tostring(table) Fired when tostring is called on the table. __metatable If present, locks the metatable so getmetatable will return this instead of the metatable and setmetatable will error. Non-function value. __eq(table, value) The == equal to operator¹ __lt(table, value) The < less than operator¹ __le(table, value) The <= operator¹ __mode Used in weak tables, declaring whether the keys and/or values of a table are weak. Note: References to Roblox instances are never weak. Tables that hold such references will never be garbage collected. __gc(table) Fired when the table is garbage-collected. Note: On Roblox, this metamethod is disabled. __len(table) Fired when the # length operator is used on the Object. __iter(table) Used to denote a custom iterator when using generalized iteration.
реализуй модлуль и метатблицы
local m = {} funcrion m.New(plr: Player, color: Color3, ... еще что-то) retutn setmetatable({ Player = plr, Color = color, ... что-то },m) endreturn m
- Assistant
- User
нет это должно быть как roblox-ts(для typescript) но на golang
- Assistant