idk
This commit is contained in:
parent
05c424e6c1
commit
519f7966b7
@ -9,14 +9,13 @@ local rBotUtils = require(rUtils.sharedBotUtils)
|
||||
local rData = ReplicatedStorage.Data
|
||||
local rWeaponData = require(rData.WeaponData)
|
||||
|
||||
|
||||
local Component = script.Parent.Component
|
||||
local HitboxComponent = require(Component.HitboxComponent)
|
||||
local ProjectileComponent = require(Component.ProjectileComponent)
|
||||
local HealthComponent = require(Component.HealthComponent)
|
||||
local DestroyableComponent = require(Component.DestroyableComponent)
|
||||
|
||||
local Janitor = require(ReplicatedStorage:WaitForChild("Janitor"))
|
||||
local Janitor = require(workspace:WaitForChild("Janitor"))
|
||||
|
||||
GameObject.__index = GameObject
|
||||
|
||||
@ -33,17 +32,15 @@ type self = {
|
||||
Projectile: ProjectileComponent.ProjectileComponent,
|
||||
Hitbox: HitboxComponent.HitboxComponent,
|
||||
Health: HealthComponent.HealthComponent,
|
||||
Destroyable : DestroyableComponent.DestroyableComponent
|
||||
Destroyable: DestroyableComponent.DestroyableComponent,
|
||||
},
|
||||
|
||||
timepassed: number,
|
||||
tickspassed: number,
|
||||
|
||||
}
|
||||
|
||||
--GameObject(TurnEnd, TurnStart, OnDestroy, Tick) Anything that needs this is a gameobject
|
||||
|
||||
|
||||
export type GameObject = typeof(setmetatable({} :: self, GameObject))
|
||||
|
||||
function GameObject.new(key: string?, model: Model, userId: number?, active)
|
||||
@ -126,7 +123,6 @@ function GameObject:_Destroy()
|
||||
self.Janitor:Destroy()
|
||||
ObjectManager._Free(self.key)
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
-----------------------------------------
|
||||
@ -146,28 +142,20 @@ end
|
||||
|
||||
function GameObject:OnHit()
|
||||
local self = self :: GameObject
|
||||
|
||||
end
|
||||
|
||||
function GameObject:OnTurnEnd()
|
||||
local self = self :: GameObject
|
||||
|
||||
end
|
||||
|
||||
function GameObject:Tick(dt)
|
||||
|
||||
end
|
||||
function GameObject:Tick(dt) end
|
||||
|
||||
function GameObject:OnCreate()
|
||||
local self = self :: GameObject
|
||||
|
||||
end
|
||||
--Before Destroying
|
||||
function GameObject:BeforeDestroy()
|
||||
local self = self :: GameObject
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
return GameObject
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user