A server software implementation, ineroperable with a certain anime game client. The code in this repository is fully custom made for edyoucational purposes and future preservation, no copyrighted code is allowed in this repository.
Is your feature request related to a problem? Please describe.
The feature request is not related to a problem. This is just a good first pr kinda thing.
Describe the solution you'd like
Viewpoints are these purple things.
To implement them, add ViewPoint to this switch here in EntityGadget.buildContent:
You will then need to make GadgetViewPoint.java that matches those other gadget types.
in onInteract(), you need to read the groupId and the ConfigId by doing something like:
var entity = player.getScene().getEntityById(req.getGadgetEntityId());
if(entity instanceof EntityGadget entityGadget){
var groupId = entityGadget.getOwner().getGroupId();
var configId = entityGadget.getOwner().getConfigId();
}
You then look up this groupId and configId in ViewCodexExcelConfigData:
Is your feature request related to a problem? Please describe. The feature request is not related to a problem. This is just a good first pr kinda thing.
Describe the solution you'd like
Viewpoints are these purple things.
To implement them, add
ViewPoint
to this switch here in EntityGadget.buildContent: You will then need to make GadgetViewPoint.java that matches those other gadget types.in onInteract(), you need to read the groupId and the ConfigId by doing something like:
You then look up this groupId and configId in ViewCodexExcelConfigData:
All you care about is Id. pop that Id into a PacketCodexDataUpdateNotify and bob is your uncle: (7 is a CodexType of CODEX_TYPE_VIEW)