world = require("world") log = require("log") NetworkedComponent = require("ecs.networked") Component = require("ecs.component") class ClientNetworkedComponent extends Component new: (name, properties) => log.info("Creating client networked info", {"client"}) super(name, properties) listen_events: () -> assert(wold.network, "world.network needs to be set before hooking events") world.network\listen("create","client_network_component",(hubid, data) -> error("ClientNetworkComponent create received:".. tostring(data)) ) world.network\listen("update","client_network_component",(hubid, data) -> error("ClientNetworkComponent update received:".. tostring(data)) ) ClientNetworkedComponent