skadistats.clarity.model.state.EntityStateFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clarity Show documentation
Show all versions of clarity Show documentation
Clarity is an open source replay parser for Dota 2, CSGO, CS2 and Deadlock written in Java.
package skadistats.clarity.model.state;
import skadistats.clarity.io.s1.ReceiveProp;
import skadistats.clarity.io.s2.field.SerializerField;
public class EntityStateFactory {
public static EntityState forS1(ReceiveProp[] receiveProps) {
return new ObjectArrayEntityState(receiveProps.length);
}
public static EntityState forS2(SerializerField field) {
return new NestedArrayEntityState(field);
//return new TreeMapEntityState();
}
}