forked from MagicBane/Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.6 KiB
32 lines
1.6 KiB
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ . |
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌· |
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀ |
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌ |
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀ |
|
// Magicbane Emulator Project © 2013 - 2022 |
|
// www.magicbane.com |
|
|
|
package engine.objects; |
|
import engine.math.Vector3fImmutable; |
|
import engine.net.client.ClientConnection; |
|
import engine.net.client.msg.ClientNetMsg; |
|
import engine.net.client.msg.PetitionReceivedMsg; |
|
|
|
public class Petition { |
|
public int primaryType; |
|
public int subType; |
|
public Account reportAccount; |
|
public PlayerCharacter reportPlayer; |
|
public Vector3fImmutable playerLocation; |
|
public String message; |
|
|
|
public Petition(ClientNetMsg msg, ClientConnection origin) { |
|
this.primaryType = ((PetitionReceivedMsg) msg).type; |
|
this.subType = ((PetitionReceivedMsg) msg).subType; |
|
this.reportAccount = origin.getAccount(); |
|
this.reportPlayer = origin.getPlayerCharacter(); |
|
this.playerLocation = origin.getPlayerCharacter().getLoc(); |
|
this.message = ((PetitionReceivedMsg) msg).message; |
|
} |
|
|
|
}
|
|
|