This commit is contained in:
陈思海 2025-09-02 16:30:55 +08:00
parent 21b9738e04
commit a7598232cf
159 changed files with 4059 additions and 3076 deletions

View File

@ -0,0 +1,433 @@
{
"name": "GameInputSO",
"maps": [
{
"name": "Player",
"id": "f62a4b92-ef5e-4175-8f4c-c9075429d32c",
"actions": [
{
"name": "Move",
"type": "Value",
"id": "6bc1aaf4-b110-4ff7-891e-5b9fe6f32c4d",
"expectedControlType": "Vector2",
"processors": "",
"interactions": "",
"initialStateCheck": true
},
{
"name": "Look",
"type": "Value",
"id": "2690c379-f54d-45be-a724-414123833eb4",
"expectedControlType": "Vector2",
"processors": "",
"interactions": "",
"initialStateCheck": true
},
{
"name": "Jump",
"type": "Button",
"id": "8c4abdf8-4099-493a-aa1a-129acec7c3df",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
},
{
"name": "Sprint",
"type": "Value",
"id": "980e881e-182c-404c-8cbf-3d09fdb48fef",
"expectedControlType": "Button",
"processors": "",
"interactions": "",
"initialStateCheck": true
},
{
"name": "Escape",
"type": "Button",
"id": "d0bfd212-2876-4c8e-b35e-cfb618a9dc0b",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
},
{
"name": "InteractPrimary",
"type": "Button",
"id": "66b26e9d-c51a-4fb2-a4cc-3f44bdff3355",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
},
{
"name": "InteractSecondary",
"type": "Button",
"id": "5cc4edbd-955c-4718-8bce-ce78d07abf3f",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
},
{
"name": "Zoom",
"type": "PassThrough",
"id": "702f73cf-2f96-4624-871e-f1263393b8f5",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
},
{
"name": "Toggle Walking",
"type": "Button",
"id": "4a6790ad-d534-44f4-bfde-3a550760bd39",
"expectedControlType": "",
"processors": "",
"interactions": "Press(behavior=1)",
"initialStateCheck": false
}
],
"bindings": [
{
"name": "WASD",
"id": "b7594ddb-26c9-4ba2-bd5a-901468929edc",
"path": "2DVector(mode=1)",
"interactions": "",
"processors": "",
"groups": "",
"action": "Move",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "2063a8b5-6a45-43de-851b-65f3d46e7b58",
"path": "<Keyboard>/w",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "64e4d037-32e1-4fb9-80e4-fc7330404dfe",
"path": "<Keyboard>/s",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "0fce8b11-5eab-4e4e-a741-b732e7b20873",
"path": "<Keyboard>/a",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "7bdda0d6-57a8-47c8-8238-8aecf3110e47",
"path": "<Keyboard>/d",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "up",
"id": "bb94b405-58d3-4998-8535-d705c1218a98",
"path": "<Keyboard>/upArrow",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "929d9071-7dd0-4368-9743-6793bb98087e",
"path": "<Keyboard>/downArrow",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "28abadba-06ff-4d37-bb70-af2f1e35a3b9",
"path": "<Keyboard>/leftArrow",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "45f115b6-9b4f-4ba8-b500-b94c93bf7d7e",
"path": "<Keyboard>/rightArrow",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "",
"id": "e2f9aa65-db06-4c5b-a2e9-41bc8acb9517",
"path": "<Gamepad>/leftStick",
"interactions": "",
"processors": "StickDeadzone",
"groups": "Gamepad",
"action": "Move",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "ed66cbff-2900-4a62-8896-696503cfcd31",
"path": "<Pointer>/delta",
"interactions": "",
"processors": "InvertVector2(invertX=false),ScaleVector2(x=0.05,y=0.05)",
"groups": "KeyboardMouse",
"action": "Look",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "d1d171b6-19d8-47a6-ba3a-71b6a8e7b3c0",
"path": "<Gamepad>/rightStick",
"interactions": "",
"processors": "InvertVector2(invertX=false),StickDeadzone,ScaleVector2(x=300,y=300)",
"groups": "Gamepad",
"action": "Look",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "1bd55a0b-761e-4ae4-89ae-8ec127e08a29",
"path": "<Keyboard>/space",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Jump",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "9f973413-5e27-4239-acee-38c4a63feeba",
"path": "<Gamepad>/buttonSouth",
"interactions": "",
"processors": "",
"groups": "Gamepad",
"action": "Jump",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "dc65b89f-9bd3-43fb-92af-d0d87ba5faa4",
"path": "<Keyboard>/leftShift",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Sprint",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "c8fcd86e-dcfd-4f88-8e93-b638cdbf3320",
"path": "<Gamepad>/leftTrigger",
"interactions": "",
"processors": "",
"groups": "Gamepad",
"action": "Sprint",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "2253ad85-a0da-43df-ac0e-ee4d9e37f9fa",
"path": "<Keyboard>/escape",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "Escape",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "ec4c5980-4d30-41c4-b1b4-658d52b3a103",
"path": "<Mouse>/leftButton",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "InteractPrimary",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "adcb95fb-24a3-4c13-a238-588970915d06",
"path": "<Mouse>/rightButton",
"interactions": "",
"processors": "",
"groups": "KeyboardMouse",
"action": "InteractSecondary",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "18772126-eab8-4125-b643-22aa0566bc51",
"path": "<Mouse>/scroll/y",
"interactions": "",
"processors": "Clamp(min=-0.1,max=0.1)",
"groups": "",
"action": "Zoom",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "fcac67ce-ed18-4457-b978-8eff197ccf91",
"path": "<Gamepad>/dpad/y",
"interactions": "",
"processors": "Clamp(min=-0.01,max=0.01)",
"groups": "",
"action": "Zoom",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "5edc2393-2264-49df-8e82-18f9cfa4e062",
"path": "<Keyboard>/leftCtrl",
"interactions": "",
"processors": "",
"groups": "",
"action": "Toggle Walking",
"isComposite": false,
"isPartOfComposite": false
}
]
},
{
"name": "UI",
"id": "ebfdbacf-7468-4988-9497-b726572473ea",
"actions": [
{
"name": "Cancel",
"type": "Button",
"id": "1c614fd1-b2d4-4a37-8a58-480ab69e09a5",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
},
{
"name": "Submit",
"type": "Button",
"id": "8a983366-d7b9-4953-89d1-7f6e4392ecc6",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
}
],
"bindings": [
{
"name": "",
"id": "55447a8c-bc61-4ae9-98e4-ccdcdb2bd538",
"path": "*/{Cancel}",
"interactions": "",
"processors": "",
"groups": "",
"action": "Cancel",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "9783ec4c-2684-44b8-b4dc-ca554c527049",
"path": "*/{Submit}",
"interactions": "",
"processors": "",
"groups": "",
"action": "Submit",
"isComposite": false,
"isPartOfComposite": false
}
]
}
],
"controlSchemes": [
{
"name": "KeyboardMouse",
"bindingGroup": "KeyboardMouse",
"devices": [
{
"devicePath": "<Keyboard>",
"isOptional": false,
"isOR": false
},
{
"devicePath": "<Mouse>",
"isOptional": false,
"isOR": false
}
]
},
{
"name": "Gamepad",
"bindingGroup": "Gamepad",
"devices": [
{
"devicePath": "<Gamepad>",
"isOptional": true,
"isOR": false
},
{
"devicePath": "<XInputController>",
"isOptional": true,
"isOR": false
},
{
"devicePath": "<DualShockGamepad>",
"isOptional": true,
"isOR": false
}
]
},
{
"name": "Xbox Controller",
"bindingGroup": "Xbox Controller",
"devices": []
},
{
"name": "PS4 Controller",
"bindingGroup": "PS4 Controller",
"devices": []
}
]
}

View File

@ -0,0 +1,14 @@
fileFormatVersion: 2
guid: 4419d82f33d36e848b3ed5af4c8da37e
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 8404be70184654265930450def6a9037, type: 3}
generateWrapperCode: 1
wrapperCodePath: Assets/Scripts/Hotfix/GameLogic/GameInput.cs
wrapperClassName: GameInput
wrapperCodeNamespace:

View File

@ -1,65 +0,0 @@
using AlicizaX.Localization.Runtime;
using AlicizaX;
using Paps.UnityToolbarExtenderUIToolkit;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
[MainToolbarElement("LocalizationDropdownField", alignment: ToolbarAlign.Right, order: 0)]
public class LocalizationDropdownField : IMGUIContainer
{
private static GUIContent appConfigBtContent;
private static readonly string[] _languageTypeNames =
{
Language.ChineseSimplified.ToString(),
Language.English.ToString(),
Language.Japanese.ToString(),
};
public void InitializeElement()
{
appConfigBtContent =
EditorGUIUtility.TrTextContentWithIcon("", "",
"Settings");
onGUIHandler = MyGUIMethod;
}
private void MyGUIMethod()
{
GUILayout.BeginHorizontal();
string title = _languageTypeNames[GetPrefsIndex()];
appConfigBtContent.text = title;
if (EditorGUILayout.DropdownButton(appConfigBtContent, FocusType.Passive, EditorStyles.toolbarPopup, GUILayout.MaxWidth(120)))
{
DrawEditorToolDropdownMenus();
}
GUILayout.Space(5);
GUILayout.EndHorizontal();
}
static void DrawEditorToolDropdownMenus()
{
int index = GetPrefsIndex();
GenericMenu popMenu = new GenericMenu();
for (int i = 0; i < _languageTypeNames.Length; i++)
{
var selected = index == i;
var toolAttr = _languageTypeNames[i];
popMenu.AddItem(new GUIContent(toolAttr), selected, menuIdx => { ClickToolsSubmenu((int)menuIdx); }, i);
}
popMenu.ShowAsContext();
}
static void ClickToolsSubmenu(int menuIdx)
{
EditorPrefs.SetInt(LocalizationComponent.PrefsKey, menuIdx + 1);
}
static int GetPrefsIndex()
{
return EditorPrefs.GetInt(LocalizationComponent.PrefsKey, 1) - 1;
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 2295b86f78274a84a63dc65ab4a69cb1
timeCreated: 1742364662

View File

@ -1,416 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &391155014370552000
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 907499237110470932}
- component: {fileID: 1560093894229825085}
- component: {fileID: 4731840468700438029}
- component: {fileID: 6898308893480071255}
m_Layer: 5
m_Name: UITemplatePanel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &907499237110470932
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 391155014370552000}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 657135054198889253}
- {fileID: 2071464777709478385}
- {fileID: 7379194316950781412}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!223 &1560093894229825085
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 391155014370552000}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 1
m_AdditionalShaderChannelsFlag: 7
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &4731840468700438029
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 391155014370552000}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 55
--- !u!114 &6898308893480071255
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 391155014370552000}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 1920, y: 1080}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 0
--- !u!1 &4390318779409622146
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7379194316950781412}
- component: {fileID: 2778387066864233462}
- component: {fileID: 4568176083037806692}
m_Layer: 0
m_Name: TextLocalizeDefault
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7379194316950781412
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4390318779409622146}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 907499237110470932}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2778387066864233462
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4390318779409622146}
m_CullTransparentMesh: 1
--- !u!114 &4568176083037806692
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4390318779409622146}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bd17b8b605f2ba540bac156b5cf5ac77, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u8BF7\u8F93\u5165\u6635\u79F0 (\u9650\u5341\u5B57\u4EE5\u5185)"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: b7bdda5fb9422b44ba90b21b9985c16c, type: 2}
m_sharedMaterial: {fileID: -7098814193341831791, guid: b7bdda5fb9422b44ba90b21b9985c16c, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
m_localizationID: INPUTPANEL_NICKNAME
--- !u!1 &5504379471084463201
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2071464777709478385}
- component: {fileID: 6336580921231272565}
- component: {fileID: 1353736730444205859}
- component: {fileID: 2186285324861091094}
m_Layer: 5
m_Name: Img@Time
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2071464777709478385
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5504379471084463201}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 907499237110470932}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 120, y: 120}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6336580921231272565
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5504379471084463201}
m_CullTransparentMesh: 1
--- !u!114 &1353736730444205859
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5504379471084463201}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 871027c5d100f954b9136354adae6817, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!95 &2186285324861091094
Animator:
serializedVersion: 7
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5504379471084463201}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 7f77f6ebcc9564d4aafeef6af8b2086d, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_AnimatePhysics: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!1 &6705590104215007862
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 657135054198889253}
- component: {fileID: 541698302465368760}
- component: {fileID: 1217312796379611331}
m_Layer: 5
m_Name: Mask
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &657135054198889253
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6705590104215007862}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 907499237110470932}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &541698302465368760
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6705590104215007862}
m_CullTransparentMesh: 1
--- !u!114 &1217312796379611331
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6705590104215007862}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 4581faa155df5854cab0d579934a0c40
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1 +0,0 @@
{"HotUpdateAssemblies":["GameLib.dll","GameProto.dll","GameBase.dll","GameLogic.dll"],"AOTMetaAssemblies":["mscorlib.dll","System.dll","System.Core.dll","UnityEngine.CoreModule.dll","YooAsset.dll","UniTask.Runtime.dll","ZString.dll"]}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 69d8fe4890823d140950a9c8adce8ff8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f3dbce1945b8e7d4bba4cb7d6e73c2e3
guid: d697d3adc2f64e643914d1fabf6f9572
folderAsset: yes
DefaultImporter:
externalObjects: {}

File diff suppressed because it is too large Load Diff

View File

@ -146,6 +146,7 @@ GameObject:
m_Component:
- component: {fileID: 1437010405}
- component: {fileID: 1437010404}
- component: {fileID: 1437010406}
m_Layer: 0
m_Name: GameObject
m_TagString: Untagged
@ -180,6 +181,18 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1437010406
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1437010403}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f09b695799b281842af084a0cb741bdd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &7354943399308362261
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: bc512c54039cec24ca30fef8581bf3c1
guid: e792a38f87cbb9049a2545ca55f2fa79
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 009cebed0f276cf4490030907abfa822
guid: 94e962d779c6d94458f307d8255d7821
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c609767384f3971468b7afd9dc95e01d
guid: 56cf3336573611b4a83b79a9ae756eed
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: edaf4cba549f0834d89826b87adae1d2
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
[CreateAssetMenu(menuName = "Input/AliasConfig")]
public class AliasConfig : ScriptableObject
{
[Serializable]
public class AliasMapping
{
public string alias;
public InputActionReference actionReference;
}
public List<AliasMapping> mappings = new();
private Dictionary<string, InputAction> _actionMap;
public void Initialize()
{
_actionMap = new();
foreach (var mapping in mappings)
{
if (mapping.actionReference != null)
{
_actionMap[mapping.alias] = mapping.actionReference.action;
}
}
}
public bool TryGetAction(string alias, out InputAction action)
=> _actionMap.TryGetValue(alias, out action);
public IEnumerable<string> GetAllAliases() => _actionMap.Keys;
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 930c7db3b7b445869daa7e250f7043cb
timeCreated: 1754479398

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 2fa6a9e6f9f9ffa489915ed5f963ac67

View File

@ -18,7 +18,8 @@
"GUID:6055be8ebefd69e48b49212b09b47b2f",
"GUID:760f1778adc613f49a4394fb41ff0bbc",
"GUID:f318a940a77af754eb1172da9dc1b400",
"GUID:198eb6af143bbc4488e2779d96697e06"
"GUID:198eb6af143bbc4488e2779d96697e06",
"GUID:75469ad4d38634e559750d17036d5f7c"
],
"includePlatforms": [],
"excludePlatforms": [],

View File

@ -8,32 +8,26 @@ using System.Threading.Tasks;
using AlicizaX;
using YooAsset;
using Cysharp.Threading.Tasks;
using Hotfix.GameLogic;
using Luban;
using UnityEngine.SceneManagement;
namespace GameLogic
{
public interface ITestEvent : IEvent
{
}
public static class HotfixEntry
{
private static List<Assembly> _hotfixAssembly;
public static List<Assembly> HotfixAssembly => _hotfixAssembly;
public static void Entrance(object[] objects)
{
Log.Info("HotFix Logic Entry!");
_hotfixAssembly = (List<Assembly>)objects[0];
new GameObject().AddComponent<TestMono>();
}
/// <summary>
/// 加载二进制配置表
/// </summary>

View File

@ -1,7 +1,4 @@
using System;
using AlicizaX.Event.Runtime;
using AlicizaX;
using AlicizaX.Resource.Runtime;
using Hotfix.GameLogic.TestWindow;
using UnityEditor;
using UnityEngine;

View File

@ -1,10 +1,20 @@
using AlicizaX;
using AlicizaX.UI.Runtime;
using GameLogic.Event.Generated;
using GameLogic.UI;
using UnityEngine;
using AudioType = AlicizaX.Audio.Runtime.AudioType;
namespace Hotfix.GameLogic.TestWindow
{
[Prewarm(2)]
public readonly struct ModeChangedEvent : IEventArgs
{
}
public readonly struct ModeHGameChangedEvent : IEventArgs
{
}
[Window(UILayer.UI)]
public class UIHomeWindow : UIWindow<ui_UITestWindow>
{
@ -12,13 +22,19 @@ namespace Hotfix.GameLogic.TestWindow
{
baseui.ImgBackGround.color = Color.gray;
baseui.Btntest.onClick.AddListener(OnTestClick);
baseui.Btntest.BindHotKey();
}
private void OnTestClick()
{
GameApp.Audio.Play(AudioType.UISound, "A1");
Debug.Log("aaa");
// GameApp.UI.ShowUI<UITestAWindow>();
Debug.Log("ShowUIA");
GameApp.UI.ShowUI<UITestAWindow>();
}
protected override void OnClose()
{
baseui.Btntest.UnBindHotKey();
}
}
@ -29,12 +45,28 @@ namespace Hotfix.GameLogic.TestWindow
{
baseui.ImgBackGround.color = Color.yellow;
baseui.Btntest.onClick.AddListener(OnTestClick);
baseui.Btntest.BindHotKey();
}
protected override void OnRegisterEvent(EventListenerProxy proxy)
{
proxy.Add(EventPublisher.Subscribe(OnModeChangedEvent));
}
public void OnModeChangedEvent(ModeChangedEvent args)
{
}
private void OnTestClick()
{
Debug.Log("ShowB");
GameApp.UI.ShowUI<UITestBWindow>();
}
protected override void OnClose()
{
baseui.Btntest.UnBindHotKey();
}
}
@ -45,11 +77,18 @@ namespace Hotfix.GameLogic.TestWindow
{
baseui.ImgBackGround.color = Color.blue;
baseui.Btntest.onClick.AddListener(OnTestClick);
baseui.Btntest.BindHotKey();
}
private void OnTestClick()
{
CloseSelf();
GameApp.UI.CloseUI<UITestAWindow>();
}
protected override void OnClose()
{
baseui.Btntest.UnBindHotKey();
}
}
}

View File

@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
using AlicizaX;
using AlicizaX.Event.Runtime;
using AlicizaX.Resource.Runtime;
using AlicizaX.UI.RecyclerView;
using AlicizaX.UI.Runtime;
using Cysharp.Threading.Tasks;
using GameLogic.UI;
using UnityEngine;
[Window(UILayer.UI)]
[Window(UILayer.UI,false,160)]
public class UILoadUpdate : UITabWindow<ui_UILoadUpdateWindow>
{

View File

@ -5,4 +5,6 @@ namespace GameLogic.UI
public class UITestCardWidget : UIWidget<ui_UITestCardWidget>
{
}
}

View File

@ -2,11 +2,10 @@
using System.Collections;
using System.Collections.Generic;
using AlicizaX.Resource.Runtime;
using AlicizaX.Event.Runtime;
using AlicizaX.Localization.Runtime;
using AlicizaX;
using Cysharp.Threading.Tasks;
// using Unity.Startup.UI;
using AlicizaX.Resource.Runtime.Event.Generated;
using UnityEngine;
@ -15,11 +14,11 @@ namespace Unity.Startup.Procedure
public static class LauncherUIHandler
{
// private static UILoadUpdateWindow _uiLoadUpdateWindow;
static EventRuntimeHandle eventRuntimeHandle;
public static async UniTaskVoid Start()
{
// _uiLoadUpdateWindow = await GameApp.UI.ShowUIAsync<UILoadUpdateWindow>();
GameApp.Event.Subscribe(AssetDownloadProgressUpdateEventArgs.EventId, SetProgressUpdate);
EventPublisher.Subscribe(SetProgressUpdate);
// GameApp.Event.Subscribe(AssetPatchStatesChangeEventArgs.EventId, SetPatchStates);
await UniTask.CompletedTask;
// TextAsset config = Resources.Load<TextAsset>($"Localization/{AppBuilderSetting.Instance.Language.ToString()}");
@ -30,9 +29,7 @@ namespace Unity.Startup.Procedure
public static void Dispose()
{
// GameApp.UI.CloseUI<UILoadUpdateWindow>();
// GameApp.Event.Unsubscribe(AssetPatchStatesChangeEventArgs.EventId, SetPatchStates);
GameApp.Event.Unsubscribe(AssetDownloadProgressUpdateEventArgs.EventId, SetProgressUpdate);
eventRuntimeHandle.Dispose();
}
private static float _lastUpdateDownloadedSize;
@ -75,14 +72,9 @@ namespace Unity.Startup.Procedure
// _uiLoadUpdateWindow.SetProgressText(v );
}
private static void SetPatchStates(object sender, GameEventArgs gameEventArgs)
{
// var message = (AssetPatchStatesChangeEventArgs)gameEventArgs;
// _uiLoadUpdateWindow.SetDescText(GameApp.Localization.GetString(message.CurrentStates.ToString()));
// Debug.Log(message.CurrentStates);
}
private static void SetProgressUpdate(object sender, GameEventArgs gameEventArgs)
private static void SetProgressUpdate(AssetDownloadProgressUpdateEventArgs gameEventArgs)
{
var message = (AssetDownloadProgressUpdateEventArgs)gameEventArgs;
_currentDownloadBytes = message.CurrentDownloadSizeBytes;

View File

@ -2,6 +2,7 @@
using Cysharp.Threading.Tasks;
using AlicizaX.Resource.Runtime;
using AlicizaX;
using AlicizaX.Resource.Runtime.Event.Generated;
using UnityEngine;
using YooAsset;
@ -39,12 +40,13 @@ namespace Unity.Startup.Procedure
Log.Error("资源更新失败!");
return;
}
SwitchState(UpdateProcedureState.ProcedurePatchDone);
}
private void OnDownloadProgressCallback(DownloadUpdateData data)
{
GameApp.Event.Fire(this, AssetDownloadProgressUpdateEventArgs.Create(data.PackageName, data.TotalDownloadCount, data.CurrentDownloadCount, data.TotalDownloadBytes, data.CurrentDownloadBytes));
EventPublisher.Publish(AssetDownloadProgressUpdateEventArgs.Create(data.PackageName, data.TotalDownloadCount, data.CurrentDownloadCount, data.TotalDownloadBytes, data.CurrentDownloadBytes));
}
}
}

View File

@ -36,36 +36,7 @@ namespace Unity.Startup.Procedure
private void InitlizeGameSetting()
{
bool isWrited = Utility.PlayerPrefsX.GetBool(PrefsKey.Setting.WirtedSetting, false);
if (!isWrited)
{
WriteDefaultSetting();
}
InitSoundSettings();
_gameSettingInitFinish = true;
}
private void WriteDefaultSetting()
{
Utility.PlayerPrefsX.SetBool(PrefsKey.Setting.WirtedSetting, true);
Utility.PlayerPrefsX.SetBool(PrefsKey.Setting.MusicMuted, false);
Utility.PlayerPrefsX.SetFloat(PrefsKey.Setting.MusicVolume, 1f);
Utility.PlayerPrefsX.SetBool(PrefsKey.Setting.SoundMuted, false);
Utility.PlayerPrefsX.SetFloat(PrefsKey.Setting.SoundVolume, 1f);
Utility.PlayerPrefsX.SetBool(PrefsKey.Setting.UISoundMuted, false);
Utility.PlayerPrefsX.SetFloat(PrefsKey.Setting.UISoundVolume, 1f);
}
private void InitSoundSettings()
{
GameApp.Audio.MusicEnable = !Utility.PlayerPrefsX.GetBool(PrefsKey.Setting.MusicMuted, false);
GameApp.Audio.MusicVolume = Utility.PlayerPrefsX.GetFloat(PrefsKey.Setting.MusicVolume, 1f);
GameApp.Audio.SoundEnable = !Utility.PlayerPrefsX.GetBool(PrefsKey.Setting.SoundMuted, false);
GameApp.Audio.SoundVolume = Utility.PlayerPrefsX.GetFloat(PrefsKey.Setting.SoundVolume, 1f);
GameApp.Audio.UISoundEnable = !Utility.PlayerPrefsX.GetBool(PrefsKey.Setting.UISoundMuted, false);
GameApp.Audio.UISoundVolume = Utility.PlayerPrefsX.GetFloat(PrefsKey.Setting.UISoundVolume, 1f);
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -1,29 +1,15 @@
using System;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.InputSystem;
public class UITestMono : MonoBehaviour
{
public UXButton btnTest;
public bool selected;
public UXButton button;
[Sirenix.OdinInspector.Button]
public void DoSelect()
{
btnTest.SetSelect(selected, true);
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
btnTest.onValueChanged.AddListener(OnvalueChanged);
}
private void OnvalueChanged(bool arg0)
{
Debug.Log($"ValueChanged {arg0}");
}
// Update is called once per frame
void Update()
[Button]
public void Select()
{
button.Selected = true;
}
}

@ -1 +1 @@
Subproject commit f432ee445b50695eed6b508aca71dfeea53fcd57
Subproject commit 1c0cbb362cddc7622fffb879f13f35b064be6769

View File

@ -45,6 +45,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
uiRoot: {fileID: 4612363183729467837, guid: 9368ff38b2090b2468f8358242026e4b, type: 3}
_isOrthographic: 1
--- !u!1 &1516812642607394282
GameObject:
m_ObjectHideFlags: 0
@ -276,8 +277,6 @@ Transform:
m_Children:
- {fileID: 1933965801183527639}
- {fileID: 1316740771005759728}
- {fileID: 1172762408459505014}
- {fileID: 5170167877536483258}
- {fileID: 424925309774805088}
- {fileID: 1226030177838128577}
- {fileID: 7231588671532407876}
@ -620,94 +619,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_CheckCanReleaseInterval: 30
m_AutoReleaseInterval: 60
--- !u!1 &8527903851783246430
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5170167877536483258}
- component: {fileID: 454459017733802404}
m_Layer: 0
m_Name: Event
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5170167877536483258
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8527903851783246430}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 425597497363353001}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &454459017733802404
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8527903851783246430}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 48602115335c4223a70dc35cd6b29bbd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &8951643211898284125
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1172762408459505014}
- component: {fileID: 1373859279789550255}
m_Layer: 0
m_Name: EventKit
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1172762408459505014
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8951643211898284125}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 425597497363353001}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1373859279789550255
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8951643211898284125}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7eec9f691e06464cbfc45f619c7fee9d, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &8974750909375893034
GameObject:
m_ObjectHideFlags: 0

View File

@ -3,11 +3,9 @@
"rootNamespace": "",
"references": [
"GUID:75b6f2078d190f14dbda4a5b747d709c",
"GUID:2393d135922de5c4ab12e74f1e397920",
"GUID:f318a940a77af754eb1172da9dc1b400",
"GUID:be2f20a77f3232f44b9711ef43234aac",
"GUID:56115dc8e38144842823f4ee0dcad88b",
"GUID:4041d17782e62754ba8777fe2dfb6b27",
"GUID:000cc1eaf688c5246be5328cb0cf16c8",
"GUID:0d00816689626d846bd06cd779413413",
"GUID:198eb6af143bbc4488e2779d96697e06",
@ -27,6 +25,46 @@
"name": "com.alicizax.unity.network",
"expression": "",
"define": "ALICIZAX_NETWORK"
},
{
"name": "com.alicizax.unity.event",
"expression": "",
"define": "ALICIZAX_EVENT_SUPPORT"
},
{
"name": "com.alicizax.unity.audio",
"expression": "",
"define": "ALICIZAX_AUDIO_SUPPORT"
},
{
"name": "com.alicizax.unity.fsm",
"expression": "",
"define": "ALICIZAX_FSM_SUPPORT"
},
{
"name": "com.alicizax.unity.localization",
"expression": "",
"define": "ALICIZAX_LOCALIZATION_SUPPORT"
},
{
"name": "com.alicizax.unity.resource",
"expression": "",
"define": "ALICIZAX_RESOURCE_SUPPORT"
},
{
"name": "com.alicizax.unity.scene",
"expression": "",
"define": "ALICIZAX_SCENE_SUPPORT"
},
{
"name": "com.alicizax.unity.timer",
"expression": "",
"define": "ALICIZAX_TIMER_SUPPORT"
},
{
"name": "com.alicizax.unity.ui",
"expression": "",
"define": "ALICIZAX_UI_SUPPORT"
}
],
"noEngineReferences": false

View File

@ -1,4 +1,5 @@
using AlicizaX;
#if ALICIZAX_AUDIO_SUPPORT
using AlicizaX;
using AlicizaX.Audio.Runtime;
public static partial class GameApp
@ -21,3 +22,5 @@ public static partial class GameApp
internal static IAudioModule _audio;
}
#endif

View File

@ -1,4 +1,4 @@

#if ALICIZAX_EVENT_SUPPORT
using AlicizaX.Event.Runtime;
using AlicizaX;
@ -22,3 +22,5 @@ public static partial class GameApp
internal static IEventModule _event;
}
#endif

View File

@ -1,4 +1,7 @@
using AlicizaX;
 #if ALICIZAX_FSM_SUPPORT
using AlicizaX;
using AlicizaX.Fsm.Runtime;
public static partial class GameApp
@ -21,3 +24,4 @@ public static partial class GameApp
internal static IFsmModule _fsm;
}
#endif

View File

@ -1,4 +1,5 @@
using AlicizaX.Localization.Runtime;
#if ALICIZAX_LOCALIZATION_SUPPORT
using AlicizaX.Localization.Runtime;
using AlicizaX;
public static partial class GameApp
@ -21,3 +22,4 @@ public static partial class GameApp
internal static ILocalizationModule _localization;
}
#endif

View File

@ -1,4 +1,5 @@

#if ALICIZAX_RESOURCE_SUPPORT
using AlicizaX.Resource.Runtime;
using AlicizaX;
@ -22,3 +23,5 @@ public static partial class GameApp
internal static IResourceModule _resource;
}
#endif

View File

@ -1,4 +1,5 @@
using AlicizaX;
#if ALICIZAX_SCENE_SUPPORT
using AlicizaX;
using AlicizaX.Scene.Runtime;
public static partial class GameApp
@ -22,3 +23,5 @@ public static partial class GameApp
internal static ISceneModule _scene;
}
#endif

View File

@ -1,4 +1,5 @@
using AlicizaX;
#if ALICIZAX_TIMER_SUPPORT
using AlicizaX;
using AlicizaX.Timer.Runtime;
public static partial class GameApp
@ -21,3 +22,5 @@ public static partial class GameApp
internal static ITimerModule _timer;
}
#endif

View File

@ -1,4 +1,5 @@
using AlicizaX;
#if ALICIZAX_UI_SUPPORT
using AlicizaX;
using AlicizaX.UI.Runtime;
public static partial class GameApp
@ -21,3 +22,5 @@ public static partial class GameApp
internal static IUIModule _ui;
}
#endif

View File

@ -1,6 +1,4 @@
#if UNITY_EDITOR
using System.Reflection;
using AlicizaX.EventKit;
using UnityEditor;
internal static class GameAppStaticMemberReset
@ -19,18 +17,40 @@ internal static class GameAppStaticMemberReset
private static void ResetAllEventContainers()
{
GameApp._base = null;
#if ALICIZAX_AUDIO_SUPPORT
GameApp._audio = null;
#endif
#if ALICIZAX_EVENT_SUPPORT
GameApp._event = null;
#endif
#if ALICIZAX_FSM_SUPPORT
GameApp._fsm = null;
#endif
#if ALICIZAX_LOCALIZATION_SUPPORT
GameApp._localization = null;
#endif
#if ALICIZAX_NETWORK
GameApp._network = null;
#endif
GameApp._objectPool = null;
#if ALICIZAX_RESOURCE_SUPPORT
GameApp._resource = null;
#endif
#if ALICIZAX_SCENE_SUPPORT
GameApp._scene = null;
#endif
#if ALICIZAX_TIMER_SUPPORT
GameApp._timer = null;
#endif
#if ALICIZAX_UI_SUPPORT
GameApp._ui = null;
#endif
}
}

View File

@ -1,20 +0,0 @@
{
"name": "AlicizaX.Event.Editor",
"rootNamespace": "",
"references": [
"GUID:acfef7cabed3b0a42b25edb1cd4fa259",
"GUID:75b6f2078d190f14dbda4a5b747d709c",
"GUID:4041d17782e62754ba8777fe2dfb6b27"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: b3fa6cbd56d754a4eb8f60ff911c0f15
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 56fe0562bc9d4b20a2f72678cc7a67de
timeCreated: 1737380269

View File

@ -1,32 +0,0 @@
using AlicizaX.Editor;
using AlicizaX.Event.Runtime;
using UnityEditor;
namespace AlicizaX.Event.Editor
{
[CustomEditor(typeof(EventComponent))]
internal sealed class EventComponentInspector : GameFrameworkInspector
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
if (!EditorApplication.isPlaying)
{
EditorGUILayout.HelpBox("Available during runtime only.", MessageType.Info);
return;
}
EventComponent t = (EventComponent)target;
if (IsPrefabInHierarchy(t.gameObject))
{
EditorGUILayout.LabelField("Event Handler Count", t.EventHandlerCount.ToString());
EditorGUILayout.LabelField("Event Count", t.EventCount.ToString());
}
Repaint();
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: bb23c608d69039c4dab132437b577ba1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [2023] [ALianBlank of copyright owner][alianblank@outlook.com][https://alianblank.com/]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: e2023280b367bf64c88d97b455ace1f7
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,16 +0,0 @@
{
"name": "AlicizaX.Event.Runtime",
"rootNamespace": "AlicizaX.Event.Runtime",
"references": [
"GUID:75b6f2078d190f14dbda4a5b747d709c"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 4041d17782e62754ba8777fe2dfb6b27
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: ba9583e6d4f44519991805addb757f66
timeCreated: 1737377121

View File

@ -1,149 +0,0 @@
using System;
using AlicizaX;
namespace AlicizaX.Event.Runtime
{
/// <summary>
/// 事件管理器。
/// </summary>
[UnityEngine.Scripting.Preserve]
internal sealed class EventModule : IEventModule
{
private readonly EventPool<GameEventArgs> m_EventPool;
/// <summary>
/// 初始化事件管理器的新实例。
/// </summary>
public EventModule()
{
m_EventPool = new EventPool<GameEventArgs>(EventPoolMode.AllowNoHandler | EventPoolMode.AllowMultiHandler);
}
/// <summary>
/// 获取事件处理函数的数量。
/// </summary>
public int EventHandlerCount
{
get { return m_EventPool.EventHandlerCount; }
}
/// <summary>
/// 获取事件数量。
/// </summary>
public int EventCount
{
get { return m_EventPool.EventCount; }
}
/// <summary>
/// 获取游戏框架模块优先级。
/// </summary>
/// <remarks>优先级较高的模块会优先轮询,并且关闭操作会后进行。</remarks>
public int Priority
{
get => 7;
}
void IModuleAwake.Awake()
{
}
/// <summary>
/// 事件管理器轮询。
/// </summary>
/// <param name="elapseSeconds">逻辑流逝时间,以秒为单位。</param>
/// <param name="realElapseSeconds">真实流逝时间,以秒为单位。</param>
void IModuleUpdate.Update(float elapseSeconds, float realElapseSeconds)
{
m_EventPool.Update(elapseSeconds, realElapseSeconds);
}
/// <summary>
/// 关闭并清理事件管理器。
/// </summary>
void IModule.Dispose()
{
m_EventPool.Shutdown();
}
/// <summary>
/// 获取事件处理函数的数量。
/// </summary>
/// <param name="id">事件类型编号。</param>
/// <returns>事件处理函数的数量。</returns>
public int Count(string id)
{
return m_EventPool.Count(id);
}
/// <summary>
/// 检查是否存在事件处理函数。
/// </summary>
/// <param name="id">事件类型编号。</param>
/// <param name="handler">要检查的事件处理函数。</param>
/// <returns>是否存在事件处理函数。</returns>
public bool Check(string id, EventHandler<GameEventArgs> handler)
{
return m_EventPool.Check(id, handler);
}
/// <summary>
/// 订阅事件处理函数。
/// </summary>
/// <param name="id">事件类型编号。</param>
/// <param name="handler">要订阅的事件处理函数。</param>
public void Subscribe(string id, EventHandler<GameEventArgs> handler)
{
m_EventPool.Subscribe(id, handler);
}
/// <summary>
/// 取消订阅事件处理函数。
/// </summary>
/// <param name="id">事件类型编号。</param>
/// <param name="handler">要取消订阅的事件处理函数。</param>
public void Unsubscribe(string id, EventHandler<GameEventArgs> handler)
{
m_EventPool.Unsubscribe(id, handler);
}
/// <summary>
/// 设置默认事件处理函数。
/// </summary>
/// <param name="handler">要设置的默认事件处理函数。</param>
public void SetDefaultHandler(EventHandler<GameEventArgs> handler)
{
m_EventPool.SetDefaultHandler(handler);
}
/// <summary>
/// 抛出事件,这个操作是线程安全的,即使不在主线程中抛出,也可保证在主线程中回调事件处理函数,但事件会在抛出后的下一帧分发。
/// </summary>
/// <param name="sender">事件源。</param>
/// <param name="e">事件参数。</param>
public void Fire(object sender, GameEventArgs e)
{
m_EventPool.Fire(sender, e);
}
/// <summary>
/// 抛出事件立即模式,这个操作不是线程安全的,事件会立刻分发。
/// </summary>
/// <param name="sender">事件源。</param>
/// <param name="e">事件参数。</param>
public void FireNow(object sender, GameEventArgs e)
{
m_EventPool.FireNow(sender, e);
}
public void CheckSubscribe(string id, EventHandler<GameEventArgs> handler)
{
if (!Check(id, handler))
{
Subscribe(id, handler);
}
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 1267278369384852bd13cbf7f1e5b4a2
timeCreated: 1712725897

View File

@ -1,73 +0,0 @@
using System;
using AlicizaX;
namespace AlicizaX.Event.Runtime
{
/// <summary>
/// 事件管理器接口。
/// </summary>
[UnityEngine.Scripting.Preserve]
public interface IEventModule:IModule,IModuleUpdate,IModuleAwake
{
/// <summary>
/// 获取事件处理函数的数量。
/// </summary>
int EventHandlerCount { get; }
/// <summary>
/// 获取事件数量。
/// </summary>
int EventCount { get; }
/// <summary>
/// 获取事件处理函数的数量。
/// </summary>
/// <param name="id">事件类型编号。</param>
/// <returns>事件处理函数的数量。</returns>
int Count(string id);
/// <summary>
/// 检查是否存在事件处理函数。
/// </summary>
/// <param name="id">事件类型编号。</param>
/// <param name="handler">要检查的事件处理函数。</param>
/// <returns>是否存在事件处理函数。</returns>
bool Check(string id, EventHandler<GameEventArgs> handler);
/// <summary>
/// 订阅事件处理函数。
/// </summary>
/// <param name="id">事件类型编号。</param>
/// <param name="handler">要订阅的事件处理函数。</param>
void Subscribe(string id, EventHandler<GameEventArgs> handler);
/// <summary>
/// 取消订阅事件处理函数。
/// </summary>
/// <param name="id">事件类型编号。</param>
/// <param name="handler">要取消订阅的事件处理函数。</param>
void Unsubscribe(string id, EventHandler<GameEventArgs> handler);
/// <summary>
/// 设置默认事件处理函数。
/// </summary>
/// <param name="handler">要设置的默认事件处理函数。</param>
void SetDefaultHandler(EventHandler<GameEventArgs> handler);
/// <summary>
/// 抛出事件,这个操作是线程安全的,即使不在主线程中抛出,也可保证在主线程中回调事件处理函数,但事件会在抛出后的下一帧分发。
/// </summary>
/// <param name="sender">事件源。</param>
/// <param name="e">事件参数。</param>
void Fire(object sender, GameEventArgs e);
/// <summary>
/// 抛出事件立即模式,这个操作不是线程安全的,事件会立刻分发。
/// </summary>
/// <param name="sender">事件源。</param>
/// <param name="e">事件参数。</param>
void FireNow(object sender, GameEventArgs e);
void CheckSubscribe(string id, EventHandler<GameEventArgs> handler);
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 688ce87052f24e66ba57a17acf5ac6a5
timeCreated: 1712725897

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 1636d6b6161647198cfa1dfd4074d984
timeCreated: 1737377121

View File

@ -1,12 +0,0 @@
using AlicizaX;
namespace AlicizaX.Event.Runtime
{
/// <summary>
/// 游戏逻辑事件基类。
/// </summary>
[UnityEngine.Scripting.Preserve]
public abstract class GameEventArgs : BaseEventArgs
{
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 7fe2fdb2ef48411ba7597d0e3f6d2315
timeCreated: 1712725897

View File

@ -1,41 +0,0 @@
using System;
using AlicizaX;
using UnityEngine;
namespace AlicizaX.Event.Runtime
{
/// <summary>
/// 事件组件。
/// </summary>
[DisallowMultipleComponent]
[AddComponentMenu("Game Framework/Event")]
[UnityEngine.Scripting.Preserve]
public sealed class EventComponent : MonoBehaviour
{
private IEventModule _mEventModule = null;
/// <summary>
/// 获取事件处理函数的数量。
/// </summary>
public int EventHandlerCount
{
get { return _mEventModule.EventHandlerCount; }
}
/// <summary>
/// 获取事件数量。
/// </summary>
public int EventCount
{
get { return _mEventModule.EventCount; }
}
/// <summary>
/// 游戏框架组件初始化。
/// </summary>
private void Awake()
{
_mEventModule = ModuleSystem.RegisterModule<IEventModule,EventModule>();
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 48602115335c4223a70dc35cd6b29bbd
timeCreated: 1737377121

View File

@ -1,3 +0,0 @@
<linker>
<assembly fullname="AlicizaX.Event.Runtime" preserve="all" />
</linker>

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 2eb17046ff0f48a698b107981ae00392
timeCreated: 1737098131

View File

@ -1,20 +0,0 @@
{
"name": "com.alicizax.unity.event",
"displayName": "Aliciza X Event",
"category": "Aliciza X",
"description": "Aliciza X EventComponent",
"version": "1.0.1",
"unity": "2025.1",
"keywords": [
"Game Framework X"
],
"repository": {
"name": "com.alicizax.unity",
"url": "http://101.34.252.46:3000/AlicizaX/",
"type": "git"
},
"author": {
"name": "Yuliuren",
"email": "yuliuren00@gmail.com"
}
}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: ab8d0d1b366a48c4d843ac40c40e01da
PackageManifestImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,20 +0,0 @@
{
"name": "AlicizaX.EventKit.Editor",
"rootNamespace": "",
"references": [
"GUID:acfef7cabed3b0a42b25edb1cd4fa259",
"GUID:75b6f2078d190f14dbda4a5b747d709c",
"GUID:2393d135922de5c4ab12e74f1e397920"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 28bc23f8b89844048aafaf7ca5660b84
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,32 +0,0 @@
#if UNITY_EDITOR
using UnityEditor;
using System;
using System.Reflection;
namespace AlicizaX.EventKit
{
[InitializeOnLoad]
public static class EventContainerEditorReset
{
static EventContainerEditorReset()
{
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
}
private static void OnPlayModeStateChanged(PlayModeStateChange state)
{
if (state == PlayModeStateChange.ExitingPlayMode)
ResetAllEventContainers();
}
private static void ResetAllEventContainers()
{
foreach (var type in EventContainerRegistry.GetRegisteredTypes())
{
MethodInfo resetMethod = type.GetMethod("Reset", BindingFlags.Public | BindingFlags.Static);
resetMethod?.Invoke(null, null);
}
}
}
}
#endif

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 8603240031a44d8d985e1d18314cef37
timeCreated: 1743592768

View File

@ -1,40 +0,0 @@
using System;
using AlicizaX.Editor;
using AlicizaX.EventKit.Runtime;
using UnityEditor;
using UnityEngine;
namespace AlicizaX.EventKit.Editor
{
[CustomEditor(typeof(EventPublisherSetting))]
internal sealed class EventPublisherComponentInspector : GameFrameworkInspector
{
private const string Define = "Event_StrickCheck";
private bool hasDefine;
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
serializedObject.Update();
EventPublisherSetting t = (EventPublisherSetting)target;
EditorGUI.BeginDisabledGroup(EditorApplication.isPlayingOrWillChangePlaymode);
{
bool enableStrictCheck = EditorGUILayout.Toggle("Enable Strict Check", hasDefine);
if (enableStrictCheck != hasDefine)
{
hasDefine = true;
ScriptingDefineSymbols.AddScriptingDefineSymbol(Define);
}
}
EditorGUI.EndDisabledGroup();
serializedObject.ApplyModifiedProperties();
}
private void OnEnable()
{
hasDefine = ScriptingDefineSymbols.HasScriptingDefineSymbol(BuildTargetGroup.Standalone, Define);
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: e83000f2cedd4654a78735ac37b6a1aa
timeCreated: 1737376364

View File

@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [2023] [ALianBlank of copyright owner][alianblank@outlook.com][https://alianblank.com/]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: f1144ce08ce6d054bb4667eef8b5fcff
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 6893b29922a3c804b813358516af6027
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,17 +0,0 @@
{
"name": "AlicizaX.EventKit.Runtime",
"rootNamespace": "AlicizaX.EventKit.Runtime",
"references": [
"GUID:75b6f2078d190f14dbda4a5b747d709c",
"GUID:f51ebe6a0ceec4240a699833d6309b23"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 2393d135922de5c4ab12e74f1e397920
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 0c819f41254149e58a08a206d18d5b4d
timeCreated: 1740728565

View File

@ -1,176 +0,0 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Unity.IL2CPP.CompilerServices;
namespace AlicizaX.EventKit
{
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
public static class EventContainer<TPayload> where TPayload : struct, IEventArgs
{
private const int InitialSize = 4;
private static Handler[] _handlers = new Handler[InitialSize];
private static int[] _freeSlots = new int[InitialSize];
private static int _freeCount = InitialSize;
private static int[] _activeIndices = new int[InitialSize];
private static int _activeCount;
private static int _version;
#if Event_StrickCheck
private static System.Collections.Generic.HashSet<Action<TPayload>> _activeHandlers = new();
#endif
static EventContainer()
{
for (int i = 0; i < InitialSize; i++)
{
_freeSlots[i] = i;
}
#if UNITY_EDITOR
EventContainerRegistry.Register(typeof(EventContainer<TPayload>)); // 注册类型
#endif
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Reset()
{
_handlers = new Handler[InitialSize];
_freeSlots = new int[InitialSize];
_freeCount = InitialSize;
for (int i = 0; i < InitialSize; i++)
_freeSlots[i] = i;
_activeIndices = new int[InitialSize];
_activeCount = 0;
_version = 0;
#if Event_StrickCheck
_activeHandlers?.Clear();
#endif
}
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
[StructLayout(LayoutKind.Sequential, Pack = 4)]
private struct Handler
{
public Action<TPayload> Callback;
public int Version;
public int ActiveSlot;
}
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static EventRuntimeHandle Subscribe(Action<TPayload> callback)
{
#if Event_StrickCheck
if (_activeHandlers.Contains(callback))
{
Log.Warning($"重复订阅事件处理程序: {callback.Method.Name}");
}
else
{
_activeHandlers.Add(callback);
}
#endif
int handlerIndex = GetFreeSlot();
if (_activeCount >= _activeIndices.Length)
{
Array.Resize(ref _activeIndices, _activeIndices.Length * 2);
}
int activeIndex = _activeCount++;
_activeIndices[activeIndex] = handlerIndex;
int version = ++_version;
_handlers[handlerIndex] = new Handler
{
Callback = callback,
Version = version,
ActiveSlot = activeIndex
};
return new EventRuntimeHandle((i, v) => Unsubscribe(i, v), handlerIndex, version);
}
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static int GetFreeSlot()
{
if (_freeCount > 0) return _freeSlots[--_freeCount];
int newSize = _handlers.Length == 0 ? 64 : _handlers.Length * 2;
Array.Resize(ref _handlers, newSize);
Array.Resize(ref _freeSlots, newSize * 2);
for (int i = newSize; i < newSize * 2; i++)
{
_freeSlots[_freeCount++] = i;
}
return newSize - 1;
}
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void Unsubscribe(int handlerIndex, int version)
{
ref Handler handler = ref _handlers[handlerIndex];
if (handler.Version != version) return;
int lastActiveIndex = --_activeCount;
int lastHandlerIndex = _activeIndices[lastActiveIndex];
int currentActiveIndex = handler.ActiveSlot;
_activeIndices[currentActiveIndex] = lastHandlerIndex;
_handlers[lastHandlerIndex].ActiveSlot = currentActiveIndex;
handler.Callback = null;
handler.Version = 0;
if (_freeCount >= _freeSlots.Length)
{
Array.Resize(ref _freeSlots, _freeSlots.Length * 2);
}
_freeSlots[_freeCount++] = handlerIndex;
#if Event_StrickCheck
_activeHandlers.Remove(handler.Callback);
#endif
}
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Publish(in TPayload payload)
{
int count = _activeCount;
int[] indices = _activeIndices;
Handler[] handlers = _handlers;
int i = 0;
for (; i <= count - 4; i += 4)
{
handlers[indices[i]].Callback(payload);
handlers[indices[i + 1]].Callback(payload);
handlers[indices[i + 2]].Callback(payload);
handlers[indices[i + 3]].Callback(payload);
}
for (; i < count; i++)
{
handlers[indices[i]].Callback(payload);
}
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: cbff9d3b8de14e70928996c189419369
timeCreated: 1740460625

View File

@ -1,13 +0,0 @@
#if UNITY_EDITOR
namespace AlicizaX.EventKit
{
public static class EventContainerRegistry
{
private static readonly System.Collections.Generic.HashSet<System.Type> _registeredTypes =
new System.Collections.Generic.HashSet<System.Type>();
public static void Register(System.Type type) => _registeredTypes.Add(type);
public static System.Collections.Generic.IEnumerable<System.Type> GetRegisteredTypes() => _registeredTypes;
}
}
#endif

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: bb06277a410841b4b1f46fed37ef9f32
timeCreated: 1743592733

View File

@ -1,37 +0,0 @@
using System;
using System.Runtime.CompilerServices;
using Unity.IL2CPP.CompilerServices;
namespace AlicizaX.EventKit
{
public static class EventPublisher
{
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static EventRuntimeHandle Subscribe<T>(Action<T> handler) where T : struct, IEventArgs
{
return EventContainer<T>.Subscribe(handler);
}
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Publish<T>(in T evt) where T : struct, IEventArgs
{
EventContainer<T>.Publish(evt);
}
[Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.DivideByZeroChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
public static void Publish<T>(Action<T> init) where T : struct, IEventArgs
{
var evt = default(T);
init(evt);
Publish(in evt);
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: a548c70953eb4f869fa4616805c46be4
timeCreated: 1740462944

View File

@ -1,9 +0,0 @@
using System;
using System.Runtime.CompilerServices;
using Unity.IL2CPP.CompilerServices;
namespace AlicizaX.EventKit
{
public interface IEventArgs { }
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: d19ae2130bb74733aac1747d6c07ec48
timeCreated: 1740460602

View File

@ -1,14 +0,0 @@
using System;
using AlicizaX;
using UnityEngine;
namespace AlicizaX.EventKit.Runtime
{
[DisallowMultipleComponent]
[AddComponentMenu("Game Framework/EventPublisher")]
[UnityEngine.Scripting.Preserve]
public sealed class EventPublisherSetting :MonoBehaviour
{
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 7eec9f691e06464cbfc45f619c7fee9d
timeCreated: 1737095521

View File

@ -1,3 +0,0 @@
<linker>
<assembly fullname="AlicizaX.EventKit.Runtime" preserve="all" />
</linker>

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: f4c0faa4b7600904abe47f4bf1a39a04
timeCreated: 1737098131

View File

@ -1,20 +0,0 @@
{
"name": "com.alicizax.unity.eventkit",
"displayName": "Aliciza X EventKit",
"category": "Aliciza X EventKit",
"description": "Aliciza X EventKitComponent",
"version": "1.0.1",
"unity": "2025.1",
"keywords": [
"Game Framework X"
],
"repository": {
"name": "com.alicizax.unity",
"url": "http://101.34.252.46:3000/AlicizaX/",
"type": "git"
},
"author": {
"name": "Yuliuren",
"email": "yuliuren00@gmail.com"
}
}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 030f98d0240510644afa487431223bfa
PackageManifestImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,12 +1,7 @@
{
"name": "AlicizaX.Localization.Editor",
"rootNamespace": "AlicizaX.Localization.Editor",
"references": [
"GUID:acfef7cabed3b0a42b25edb1cd4fa259",
"GUID:a19b414bea3b97240a91aeab9a8eab36",
"GUID:75b6f2078d190f14dbda4a5b747d709c",
"GUID:99a2a63c2a1143c4ba448165a98a5108"
],
"references": [],
"includePlatforms": [
"Editor"
],

View File

@ -1,9 +1,7 @@
using UnityEngine;
namespace AlicizaX.Localization.Editor
namespace AlicizaX.Localization.Editor.Editor
{
public class LocalizationEditor
{
}
}

Some files were not shown because too many files have changed in this diff Show More