static StructRegistry() { addStruct("Vector", binaryConstructorFunction <StructVector>(), jsonConstructorFunction <StructVector>()); addStruct("Vector2D", binaryConstructorFunction <StructVector2D>(), jsonConstructorFunction <StructVector2D>()); addStruct("Quat", binaryConstructorFunction <StructQuat>(), jsonConstructorFunction <StructQuat>()); addStruct("Color", binaryConstructorFunction <StructColor>(), jsonConstructorFunction <StructColor>()); addStruct("LinearColor", binaryConstructorFunction <StructLinearColor>(), jsonConstructorFunction <StructLinearColor>()); addStruct("Rotator", binaryConstructorFunction <StructVector>(), jsonConstructorFunction <StructVector>()); addStruct("UniqueNetIdRepl", binaryConstructorFunction <StructUniqueNetIdRepl>(), jsonConstructorFunction <StructUniqueNetIdRepl>()); nameTypeMap.Add(ArkName.ConstantPlain("CustomColors"), ArkName.ConstantPlain("Color")); nameTypeMap.Add(ArkName.ConstantPlain("CustomColours_60_7D3267C846B277953C0C41AEBD54FBCB"), ArkName.ConstantPlain("LinearColor")); }
private static void addStruct(string name, StructConstructor.Binary binaryConstructor, StructConstructor.Json jsonConstructor) { typeMap.Add(ArkName.ConstantPlain(name), new StructConstructor(binaryConstructor, jsonConstructor)); }