module Oid::TimeService::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_time_service : Entitas::Entity #

Add a Oid::TimeService to the entity. Returns self to allow chainables

entity.add_component_time_service

def add_component_time_service(**args) : Entitas::Entity #

Add a Oid::TimeService to the entity. Returns self to allow chainables

entity.add_component_time_service

def add_time_service(instance : Oid::Service::Time) : Entitas::Entity #

Add a Oid::TimeService to the entity. Returns self to allow chainables

entity.add_time_service(1)

def del_component_time_service : Entitas::Entity #

Delete Oid::TimeService from the entity. Returns self to allow chainables

entity.del_time_service
entity.time_service # => nil

def del_time_service : Entitas::Entity #

Delete Oid::TimeService from the entity. Returns self to allow chainables

entity.del_time_service
entity.time_service # => nil

def get_component_time_service : Oid::TimeService #

Will return the component that is a Oid::TimeService or raise


def has_component_time_service? : Bool #

Will return true if the entity has an component Oid::TimeService or false if it does not


def has_time_service? : Bool #

Will return true if the entity has an component Oid::TimeService or false if it does not


def remove_component_time_service #

Append. Alias for #del_component_time_service


def remove_time_service #

Append. Alias for #del_time_service


def replace_component_time_service(component : Oid::TimeService) #

Append. Alias for #replace_time_service


def replace_component_time_service(**args) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_time_service
entity.get_time_service # => (new_comp)

def replace_time_service(instance : Oid::Service::Time) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_time_service(value: 1)
entity.get_time_service # => (new_comp)

or

entity.replace_time_service(1)
entity.get_time_service # => (new_comp)

def replace_time_service(component : Oid::TimeService) #

Will replace the current component with the new one provided

entity.replace_component_time_service(new_comp)
entity.get_time_service # => (new_comp)

def time_service : Oid::TimeService #

Will return the component that is a Oid::TimeService or raise


def time_service? : Bool #

Alias. See #has_time_service?