openkore icon indicating copy to clipboard operation
openkore copied to clipboard

Plan how to refactor more things into Actor objects and ActorLists

Open farrainbow opened this issue 9 years ago • 2 comments

This is for discussion and planning of possible naming and ways to set up everything. Propose everything there.

vending shops around

buying stores around

chatrooms around

users in current chatroom

For this and the following:

  • Something like Actor::Contact?
  • How to link this best with Actor::Player objects?
  • There is related chat channel, make it its own object class (to handle global chat, party chat etc) and put the list inside of it? Like $party->{users}, where $party would be a ChatChannel/ChatRoom object.
  • Probably could be compared with contacts in some messenger contact list to make a solid logic.

users in friend list

users in current party

users in current guild

items in arrow craft list

  • Temporary lists like this one, where to store? Would it just be always there but empty, or maybe dynamically created - then we need hook points to detect when actor lists are created and destroyed.
  • Actually temporary lists can be stored somewhere in the module which would handle the related stuff, but there needs to be some API to access them besides commands.

items in card merge list

items in identification list

items in current vending shop

  • Actor classes in such lists should have additional methods for actions with the item. Like ->buy($amount).

items in current buying shop

farrainbow avatar Dec 11 '16 22:12 farrainbow

Actor::Player will take care about users in friend list, party, guild.

Actor::Contact will take care about vending, buying, chat, users.

"There is related chat channel, make it its own object class (to handle global chat, party chat etc) and put the list inside of it? Like $party->{users}, where $party would be a ChatChannel/ChatRoom object."

Is it a way to abreviate. But i do prefer using $char->{object}{value}.

I got the style of the thing, but i don't know how to code a Actor.

Something such as guild_near.

ghost avatar Jul 20 '17 19:07 ghost

I used the new inventoryList, in the rodex system I implemented I think it worked greatly, it could be used in buying shops, vending shops, card merge lists, item identification and arrow craft lists

Henrybk avatar Jul 21 '17 02:07 Henrybk