├── app ├── client │ ├── src │ │ ├── Constants.as │ │ ├── log │ │ │ ├── mongrel-0.0.0.0-3001.log │ │ │ └── mongrel-0.0.0.0-3100.log │ │ ├── model │ │ │ ├── utils │ │ │ │ └── .gitignore │ │ │ ├── IDeck.as │ │ │ ├── IAvatarParts.as │ │ │ ├── GameSession.as │ │ │ └── events │ │ │ │ ├── HideMoveEvent.as │ │ │ │ ├── DirectionEvent.as │ │ │ │ ├── RaidScoreEvent.as │ │ │ │ ├── DeckMaxCheckEvent.as │ │ │ │ ├── NGWordEvent.as │ │ │ │ ├── SelectTabEvent.as │ │ │ │ ├── CardLockEvent.as │ │ │ │ ├── QuestMapEvent.as │ │ │ │ ├── AvatarItemEvent.as │ │ │ │ ├── DuelBonusEvent.as │ │ │ │ ├── RotateCardEvent.as │ │ │ │ ├── QuestFinishEvent.as │ │ │ │ ├── InTheFogEvent.as │ │ │ │ ├── MatchingRoomEvent.as │ │ │ │ ├── CharaCardEvent.as │ │ │ │ ├── DetermineMoveEvent.as │ │ │ │ ├── FeatSceneEvent.as │ │ │ │ ├── RagePassiveEvent.as │ │ │ │ ├── StuffedToysSetEvent.as │ │ │ │ ├── CombineEvent.as │ │ │ │ ├── PassiveSkillSceneEvent.as │ │ │ │ ├── AvatarPartEvent.as │ │ │ │ ├── MatchButtonEvent.as │ │ │ │ ├── SelectItemEvent.as │ │ │ │ ├── AvatarQuestEvent.as │ │ │ │ ├── ChannelEvent.as │ │ │ │ ├── SelectShopEvent.as │ │ │ │ ├── SlotCardEvent.as │ │ │ │ └── AvatarSaleEvent.as │ │ ├── .gitignore │ │ ├── rule │ │ │ └── GameRule.as │ │ ├── crossdomain.xml │ │ ├── config.xml │ │ ├── view │ │ │ ├── BaseView.as │ │ │ ├── image │ │ │ │ ├── item │ │ │ │ │ ├── IItemBase.as │ │ │ │ │ └── IInventoryBaseImage.as │ │ │ │ ├── shop │ │ │ │ │ ├── IShopBase.as │ │ │ │ │ ├── CoinImage.as │ │ │ │ │ ├── ShopBuyParamBar.as │ │ │ │ │ └── SignImage.as │ │ │ │ └── common │ │ │ │ │ └── StoryImage.as │ │ │ ├── utils │ │ │ │ ├── SwfNameInfo.as │ │ │ │ ├── RemoveChild.as │ │ │ │ └── TopView.as │ │ │ ├── scene │ │ │ │ └── common │ │ │ │ │ └── ICardClip.as │ │ │ ├── SleepThread.as │ │ │ ├── IViewThread.as │ │ │ └── ClousureThread.as │ │ ├── sound │ │ │ ├── bgm │ │ │ │ ├── BaseBGMSound.as │ │ │ │ ├── MatchBGM.as │ │ │ │ └── TitleBGM.as │ │ │ ├── se │ │ │ │ ├── BaseSESound.as │ │ │ │ ├── LoseSE.as │ │ │ │ ├── RotateCardSE.as │ │ │ │ ├── TrapActionSE.as │ │ │ │ ├── WinSE.as │ │ │ │ ├── AlertSE.as │ │ │ │ ├── CardSetSE.as │ │ │ │ ├── ChainSE.as │ │ │ │ ├── ClickSE.as │ │ │ │ ├── PhaseSE.as │ │ │ │ ├── CardSetASE.as │ │ │ │ ├── CardSetBSE.as │ │ │ │ ├── CardSetCSE.as │ │ │ │ ├── Click2SE.as │ │ │ │ ├── Click3SE.as │ │ │ │ ├── BonusWinSE.as │ │ │ │ ├── DamageGunSE.as │ │ │ │ ├── OpenActionCardSE.as │ │ │ │ ├── BonusClickSE.as │ │ │ │ ├── BonusLoseSE.as │ │ │ │ ├── CardSetTableSE.as │ │ │ │ ├── ChanceCardSE.as │ │ │ │ ├── DeckSetSE.as │ │ │ │ ├── FeatInsertSE.as │ │ │ │ ├── ThrowCardSE.as │ │ │ │ ├── DamageSwordSE.as │ │ │ │ ├── DeckCardClickSE.as │ │ │ │ ├── DeckTabClickSE.as │ │ │ │ └── CharaCardRotateSE.as │ │ │ └── voice │ │ │ │ └── BaseVoiceSound.as │ │ ├── Unlight.mxml │ │ └── Unlight.as │ ├── data │ │ └── css │ │ │ └── .gitignore │ ├── lib │ │ ├── org │ │ │ ├── .gitignore │ │ │ ├── papervision3d │ │ │ │ ├── core │ │ │ │ │ ├── ns │ │ │ │ │ │ └── pv3dview.as │ │ │ │ │ ├── controller │ │ │ │ │ │ └── IObjectController.as │ │ │ │ │ ├── io │ │ │ │ │ │ └── exporters │ │ │ │ │ │ │ └── ExportFileFormat.as │ │ │ │ │ ├── render │ │ │ │ │ │ ├── sort │ │ │ │ │ │ │ ├── IRenderSorter.as │ │ │ │ │ │ │ ├── BasicRenderSorter.as │ │ │ │ │ │ │ └── NullSorter.as │ │ │ │ │ │ ├── filter │ │ │ │ │ │ │ ├── IRenderFilter.as │ │ │ │ │ │ │ ├── BasicRenderFilter.as │ │ │ │ │ │ │ └── AbstractQuadrantFilter.as │ │ │ │ │ │ ├── project │ │ │ │ │ │ │ └── basic │ │ │ │ │ │ │ │ └── IProjector.as │ │ │ │ │ │ ├── material │ │ │ │ │ │ │ ├── IUpdateAfterMaterial.as │ │ │ │ │ │ │ └── IUpdateBeforeMaterial.as │ │ │ │ │ │ ├── command │ │ │ │ │ │ │ ├── IRenderListItem.as │ │ │ │ │ │ │ └── AbstractRenderListItem.as │ │ │ │ │ │ ├── draw │ │ │ │ │ │ │ ├── ILineDrawer.as │ │ │ │ │ │ │ ├── IParticleDrawer.as │ │ │ │ │ │ │ └── ITriangleDrawer.as │ │ │ │ │ │ ├── shader │ │ │ │ │ │ │ └── IShaderRenderer.as │ │ │ │ │ │ └── IRenderEngine.as │ │ │ │ │ ├── culling │ │ │ │ │ │ ├── IParticleCuller.as │ │ │ │ │ │ ├── ViewportObjectFilterMode.as │ │ │ │ │ │ ├── ILineCuller.as │ │ │ │ │ │ ├── IObjectCuller.as │ │ │ │ │ │ ├── FrustumTestMethod.as │ │ │ │ │ │ ├── ITriangleCuller.as │ │ │ │ │ │ ├── DefaultLineCuller.as │ │ │ │ │ │ ├── NullTriangleCuller.as │ │ │ │ │ │ └── DefaultParticleCuller.as │ │ │ │ │ ├── view │ │ │ │ │ │ ├── IView.as │ │ │ │ │ │ └── IViewport3D.as │ │ │ │ │ ├── geom │ │ │ │ │ │ └── renderables │ │ │ │ │ │ │ ├── IRenderable.as │ │ │ │ │ │ │ └── Triangle3DInstance.as │ │ │ │ │ ├── animation │ │ │ │ │ │ └── IAnimatable.as │ │ │ │ │ ├── effects │ │ │ │ │ │ ├── utils │ │ │ │ │ │ │ ├── BitmapClearMode.as │ │ │ │ │ │ │ └── ConvolutionMatrices.as │ │ │ │ │ │ ├── IEffect.as │ │ │ │ │ │ └── AbstractEffect.as │ │ │ │ │ ├── utils │ │ │ │ │ │ └── virtualmouse │ │ │ │ │ │ │ ├── IVirtualMouseEvent.as │ │ │ │ │ │ │ └── VirtualMouseEvent.as │ │ │ │ │ ├── log │ │ │ │ │ │ ├── LogLevel.as │ │ │ │ │ │ ├── PaperLogVO.as │ │ │ │ │ │ ├── event │ │ │ │ │ │ │ └── PaperLoggerEvent.as │ │ │ │ │ │ └── IPaperLogger.as │ │ │ │ │ ├── data │ │ │ │ │ │ └── UserData.as │ │ │ │ │ ├── math │ │ │ │ │ │ └── Ray3D.as │ │ │ │ │ └── material │ │ │ │ │ │ └── AbstractSmoothShadeMaterial.as │ │ │ │ ├── typography │ │ │ │ │ ├── fonts │ │ │ │ │ │ └── use of fonts.txt │ │ │ │ │ ├── Font3D.as │ │ │ │ │ └── Letter3D.as │ │ │ │ ├── objects │ │ │ │ │ └── special │ │ │ │ │ │ └── commands │ │ │ │ │ │ ├── IVectorShape.as │ │ │ │ │ │ ├── EndFill.as │ │ │ │ │ │ ├── MoveTo.as │ │ │ │ │ │ └── BeginFill.as │ │ │ │ ├── materials │ │ │ │ │ ├── utils │ │ │ │ │ │ ├── PrecisionMode.as │ │ │ │ │ │ └── RenderRecStorage.as │ │ │ │ │ ├── shaders │ │ │ │ │ │ ├── ShaderCompositeModes.as │ │ │ │ │ │ ├── ILightShader.as │ │ │ │ │ │ ├── CellShader.as │ │ │ │ │ │ ├── PhongShader.as │ │ │ │ │ │ └── IShader.as │ │ │ │ │ ├── BitmapViewportMaterial.as │ │ │ │ │ ├── shadematerials │ │ │ │ │ │ ├── CellMaterial.as │ │ │ │ │ │ └── PhongMaterial.as │ │ │ │ │ └── special │ │ │ │ │ │ ├── FogMaterial.as │ │ │ │ │ │ └── VectorShapeMaterial.as │ │ │ │ ├── view │ │ │ │ │ └── layer │ │ │ │ │ │ ├── util │ │ │ │ │ │ └── ViewportLayerSortMode.as │ │ │ │ │ │ └── ViewportLayerEvent.as │ │ │ │ ├── lights │ │ │ │ │ └── PointLight3D.as │ │ │ │ ├── events │ │ │ │ │ └── RendererEvent.as │ │ │ │ └── scenes │ │ │ │ │ └── Scene3D.as │ │ │ └── as3s │ │ │ │ └── TweenParam.as │ │ ├── flexunit.swc │ │ ├── textLayout.swc │ │ ├── fl │ │ │ └── motion │ │ │ │ └── easing │ │ │ │ ├── Back.as │ │ │ │ ├── Bounce.as │ │ │ │ ├── Cubic.as │ │ │ │ ├── Linear.as │ │ │ │ ├── Sine.as │ │ │ │ ├── Circular.as │ │ │ │ ├── Elastic.as │ │ │ │ ├── Quartic.as │ │ │ │ ├── Quintic.as │ │ │ │ ├── Exponential.as │ │ │ │ └── Quadratic.as │ │ ├── com │ │ │ └── rails2u │ │ │ │ ├── mx │ │ │ │ └── mxTweener.as │ │ │ │ ├── utils │ │ │ │ ├── key_up.as │ │ │ │ ├── key_down.as │ │ │ │ ├── js_callback.as │ │ │ │ ├── ObjectInspecter.as │ │ │ │ └── StringUtil.as │ │ │ │ ├── core │ │ │ │ └── StopIteration.as │ │ │ │ ├── layout │ │ │ │ └── LayoutError.as │ │ │ │ ├── tracer │ │ │ │ ├── CenterTracer.as │ │ │ │ ├── CircleTracer.as │ │ │ │ └── LineTracer.as │ │ │ │ ├── chain │ │ │ │ └── DelayChain.as │ │ │ │ ├── geom │ │ │ │ └── RVertex3.as │ │ │ │ └── record │ │ │ │ ├── ObjectRecordPlayer.as │ │ │ │ └── RecordEvent.as │ │ ├── Version.as │ │ ├── SingleConnectionChecker.as │ │ └── ULSingleton.as │ ├── public │ │ └── .gitignore │ └── script │ │ ├── test_b.dat │ │ ├── get_pull_dust.rb │ │ ├── replace.sh │ │ ├── get_md5_str.rb │ │ ├── dae_converter.rb │ │ ├── publish │ │ ├── test_a.dat │ │ ├── update_version_file_git.rb │ │ ├── pull_swf_md5_dust.sh │ │ ├── put_swf_md5_dust.sh │ │ ├── update_version_file.rb │ │ ├── as3testtemplate.rb │ │ └── as3template.rb └── server │ ├── db │ └── .gitkeep │ ├── bin │ ├── .gitignore │ ├── stop_all.sh │ ├── authserver │ ├── gameserver_01 │ ├── gameserver_02 │ ├── gameserver_03 │ ├── gameserver_04 │ ├── gameserver_05 │ ├── gameserver_06 │ ├── gameserver │ ├── watchserver │ ├── watchserver_01 │ ├── watchserver_02 │ ├── watchserver_03 │ ├── watchserver_04 │ ├── watchserver_05 │ ├── watchserver_06 │ ├── questserver_01 │ ├── questserver_02 │ ├── questserver_03 │ ├── questserver_04 │ ├── questserver_05 │ ├── questserver_06 │ ├── chatserver │ ├── raidserver │ ├── dataserver │ ├── lobbyserver │ ├── questserver │ ├── chatserver_01 │ ├── chatserver_02 │ ├── chatserver_03 │ ├── chatserver_04 │ ├── chatserver_05 │ ├── chatserver_06 │ ├── dataserver_01 │ ├── dataserver_02 │ ├── dataserver_03 │ ├── dataserver_04 │ ├── dataserver_05 │ ├── dataserver_06 │ ├── dataserver_07 │ ├── dataserver_08 │ ├── dataserver_09 │ ├── dataserver_10 │ ├── dataserver_11 │ ├── dataserver_12 │ ├── lobbyserver_01 │ ├── lobbyserver_02 │ ├── lobbyserver_03 │ ├── lobbyserver_04 │ ├── lobbyserver_05 │ ├── lobbyserver_06 │ ├── lobbyserver_07 │ ├── lobbyserver_08 │ ├── globalchatserver │ ├── matchserver │ ├── raidchatserver │ ├── raidrankserver │ ├── raidserver_01 │ ├── matchserver_01 │ ├── matchserver_04 │ ├── matchserver_05 │ ├── matchserver_08 │ ├── matchserver_09 │ ├── raiddataserver │ ├── raidserver_02 │ ├── raidserver_03 │ ├── raidserver_04 │ ├── raidserver_05 │ ├── raidserver_06 │ ├── raidserver_07 │ ├── raidserver_08 │ ├── globalchatserver_01 │ ├── globalchatserver_02 │ ├── globalchatserver_03 │ ├── globalchatserver_04 │ ├── matchserver_02 │ ├── matchserver_03 │ ├── matchserver_06 │ ├── matchserver_07 │ ├── matchserver_10 │ ├── matchserver_11 │ ├── matchserver_12 │ ├── matchserver_13 │ ├── matchserver_14 │ ├── matchserver_15 │ ├── matchserver_16 │ ├── raidrankserver_01 │ ├── raidrankserver_02 │ ├── raidrankserver_03 │ ├── raidrankserver_04 │ ├── raiddataserver_01 │ ├── raiddataserver_02 │ ├── raiddataserver_03 │ ├── raiddataserver_04 │ ├── raiddataserver_05 │ ├── raiddataserver_06 │ ├── raiddataserver_07 │ ├── raiddataserver_08 │ └── restart_all.sh │ ├── src │ ├── net │ │ └── .gitignore │ ├── constants │ │ └── .gitignore │ ├── .gitignore │ └── server_ip.rb_orig │ ├── lib │ └── .gitignore │ ├── data │ ├── .gitignore │ └── csv │ │ └── ja │ │ └── MonsterTreasureInventories.csv │ ├── script │ ├── Perl_xinetd │ │ ├── cdpservice │ │ ├── install.sh │ │ ├── flashpolicyd.xinet │ │ └── flashpolicy.xml │ ├── update_ranking.rb │ ├── create_sv_ip.rb │ ├── delete_all_cpu_data.rb │ ├── create_event_profound.rb │ ├── extend_parts_limit.rb │ ├── flashpolicy.xml │ ├── reset_model.rb │ └── update_const_keys.rb │ └── Gemfile └── README.md /app/client/src/Constants.as: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/server/db/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/client/data/css/.gitignore: -------------------------------------------------------------------------------- 1 | /UL.css -------------------------------------------------------------------------------- /app/server/bin/.gitignore: -------------------------------------------------------------------------------- 1 | /pids 2 | -------------------------------------------------------------------------------- /app/server/src/net/.gitignore: -------------------------------------------------------------------------------- 1 | /crypt.rb 2 | -------------------------------------------------------------------------------- /app/client/lib/org/.gitignore: -------------------------------------------------------------------------------- 1 | /.svn 2 | /.svn 3 | -------------------------------------------------------------------------------- /app/server/lib/.gitignore: -------------------------------------------------------------------------------- 1 | /ruby_inline 2 | /test.rb 3 | -------------------------------------------------------------------------------- /app/server/src/constants/.gitignore: -------------------------------------------------------------------------------- 1 | /locale_constants.rb 2 | -------------------------------------------------------------------------------- /app/server/data/.gitignore: -------------------------------------------------------------------------------- 1 | /*.log 2 | /*.log* 3 | /*.db 4 | /backup 5 | -------------------------------------------------------------------------------- /app/server/src/.gitignore: -------------------------------------------------------------------------------- 1 | /pro.log 2 | /sequel_deprecated.txt 3 | /server_ip.rb 4 | -------------------------------------------------------------------------------- /app/client/public/.gitignore: -------------------------------------------------------------------------------- 1 | /config.xml 2 | /news.xml 3 | mobile_test 4 | mobile_config.xml -------------------------------------------------------------------------------- /app/client/src/log/mongrel-0.0.0.0-3001.log: -------------------------------------------------------------------------------- 1 | Mon, 11 May 2009 18:59:01 GMT | info | Logfile created 2 | -------------------------------------------------------------------------------- /app/client/src/log/mongrel-0.0.0.0-3100.log: -------------------------------------------------------------------------------- 1 | Mon, 11 May 2009 18:32:36 GMT | info | Logfile created 2 | -------------------------------------------------------------------------------- /app/client/lib/flexunit.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/flexunit.swc -------------------------------------------------------------------------------- /app/server/script/Perl_xinetd/cdpservice: -------------------------------------------------------------------------------- 1 | 2 | flashpolicy 11999/tcp # flash policy -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unlight 2 | Unlight Browser Card Game 3 | 4 | カードゲーム-Unlight-のソースコードになります。 5 | ライセンスの範囲内で自由に使用できます。 6 | -------------------------------------------------------------------------------- /app/client/lib/textLayout.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/textLayout.swc -------------------------------------------------------------------------------- /app/client/src/model/utils/.gitignore: -------------------------------------------------------------------------------- 1 | /#CacheData.as# 2 | /#ConstData.as# 3 | /.#CacheData.as 4 | /ConstData.as 5 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/ns/pv3dview.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.ns 2 | { 3 | public namespace pv3dview; 4 | } -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Back.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Back.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Bounce.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Bounce.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Cubic.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Cubic.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Linear.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Linear.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Sine.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Sine.as -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/mx/mxTweener.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/com/rails2u/mx/mxTweener.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Circular.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Circular.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Elastic.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Elastic.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Quartic.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Quartic.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Quintic.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Quintic.as -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/utils/key_up.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.utils 2 | { 3 | public namespace key_up = 'http://rails2u.com/utils/key_up'; 4 | } -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Exponential.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Exponential.as -------------------------------------------------------------------------------- /app/client/lib/fl/motion/easing/Quadratic.as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-unlight/Unlight/HEAD/app/client/lib/fl/motion/easing/Quadratic.as -------------------------------------------------------------------------------- /app/client/src/.gitignore: -------------------------------------------------------------------------------- 1 | /#Unlight-config.xml# 2 | /.#Unlight-config.xml 3 | /FontLoader.as 4 | /Unlight-config.xml 5 | /Unlight.swf 6 | *.DS_Store -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/utils/key_down.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.utils 2 | { 3 | public namespace key_down = 'http://rails2u.com/utils/key_down'; 4 | } -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/utils/js_callback.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.utils { 2 | public namespace js_callback = 'http://rails2u.com/utils/js_callback'; 3 | } 4 | -------------------------------------------------------------------------------- /app/client/src/rule/GameRule.as: -------------------------------------------------------------------------------- 1 | package rule 2 | { 3 | import model.Duel; 4 | 5 | public class DuelRule 6 | { 7 | 8 | 9 | } 10 | 11 | 12 | } 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/controller/IObjectController.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.controller 2 | { 3 | public interface IObjectController 4 | { 5 | function update():void; 6 | } 7 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/io/exporters/ExportFileFormat.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.io.exporters 2 | { 3 | public class ExportFileFormat 4 | { 5 | public static const COLLADA:uint = 0; 6 | } 7 | } -------------------------------------------------------------------------------- /app/client/script/test_b.dat: -------------------------------------------------------------------------------- 1 | return suite; 2 | } 3 | ]]> 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/typography/fonts/use of fonts.txt: -------------------------------------------------------------------------------- 1 | Use of Fonts: 2 | 3 | If you are using a font, make sure you have a license to use the font. 4 | 5 | Do not lend or give a font or a typography file to others to use. -------------------------------------------------------------------------------- /app/server/src/server_ip.rb_orig: -------------------------------------------------------------------------------- 1 | # Unlight 2 | # Copyright(c)2019 CPA 3 | # This software is released under the MIT License. 4 | # http://opensource.org/licenses/mit-license.php 5 | 6 | module Unlight 7 | SV_IP = "localhost" 8 | end 9 | -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/core/StopIteration.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.core { 2 | public class StopIteration extends Error { 3 | public function StopIteration(s:String = '', id:int = 0) { 4 | super(s, id); 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /app/client/script/get_pull_dust.rb: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | $:.unshift(File.join(File.expand_path("../server"), "src")) 3 | 4 | #puts ARGV[0] 5 | dirname = File.dirname(ARGV[0]) 6 | filename = File.basename(ARGV[0], ".*") 7 | puts dirname+"/"+filename 8 | -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/layout/LayoutError.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.layout { 2 | public class LayoutError extends Error { 3 | public function LayoutError(s:String = '', id:int = 0) { 4 | super(s, id); 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /app/client/src/crossdomain.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/sort/IRenderSorter.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.sort 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | 8 | public interface IRenderSorter 9 | { 10 | function sort(array:Array):void; 11 | } 12 | } -------------------------------------------------------------------------------- /app/server/bin/stop_all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ./authserver stop 3 | ./lobbyserver stop 4 | ./dataserver stop 5 | ./questserver stop 6 | ./matchserver stop 7 | ./chatserver stop 8 | ./gameserver stop 9 | ./watchserver stop 10 | ./raidserver stop 11 | ./raidchatserver stop 12 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/filter/IRenderFilter.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.filter 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | 8 | public interface IRenderFilter 9 | { 10 | function filter(array:Array):int; 11 | } 12 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/IParticleCuller.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling 2 | { 3 | import org.papervision3d.core.geom.renderables.Particle; 4 | 5 | public interface IParticleCuller 6 | { 7 | function testParticle(particle:Particle):Boolean; 8 | } 9 | } -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/utils/ObjectInspecter.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.utils 2 | { 3 | import flash.utils.getQualifiedClassName; 4 | import flash.utils.ByteArray; 5 | 6 | public class ObjectInspecter 7 | { 8 | /* 9 | * 10 | */ 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/objects/special/commands/IVectorShape.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.objects.special.commands { import flash.display.Graphics; /** * @author Mark Barcinski */ public interface IVectorShape { function draw(graphics : Graphics , prevDrawn : Boolean) : Boolean; } } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/project/basic/IProjector.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.project.basic 2 | { 3 | import org.papervision3d.core.render.data.RenderSessionData; 4 | 5 | public interface IProjector 6 | { 7 | function project(renderSessionData:RenderSessionData):void; 8 | } 9 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/ViewportObjectFilterMode.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling 2 | { 3 | /** 4 | * @Author Ralph Hauwert 5 | */ 6 | public class ViewportObjectFilterMode 7 | { 8 | public static const INCLUSIVE:int = 0; 9 | public static const EXCLUSIVE:int = 1; 10 | } 11 | } -------------------------------------------------------------------------------- /app/server/Gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | gem 'dalli', '~>2.0.2' 3 | gem 'eventmachine' 4 | gem 'mysql2','~>0.3.7' 5 | gem 'oauth','~>0.4.5' 6 | gem 'RocketAMF','~>0.2.1' 7 | gem 'rspec','~>2.11.0' 8 | gem 'sequel','~>4.0' 9 | gem 'RubyInline','~>3.12.4' 10 | gem 'sqlite3','~>1.3.11' 11 | gem 'daemons' 12 | gem 'gmp' 13 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/material/IUpdateAfterMaterial.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.material 2 | { 3 | import org.papervision3d.core.render.data.RenderSessionData; 4 | 5 | public interface IUpdateAfterMaterial 6 | { 7 | function updateAfterRender(renderSessionData:RenderSessionData):void; 8 | } 9 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/ILineCuller.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling 2 | { 3 | import org.papervision3d.core.geom.renderables.Line3D; 4 | 5 | /** 6 | * @author Seb Lee-Delisle 7 | */ 8 | 9 | public interface ILineCuller 10 | { 11 | function testLine(line : Line3D) : Boolean; 12 | } 13 | } -------------------------------------------------------------------------------- /app/client/src/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 192.168.1.65 5 | 12001 6 | 1 7 | testestes 8 | 9 | 10 | 10 11 | 1 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/IObjectCuller.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling 2 | { 3 | import org.papervision3d.objects.DisplayObject3D; 4 | 5 | /** 6 | * @author Tim Knip 7 | */ 8 | public interface IObjectCuller 9 | { 10 | function testObject( object:DisplayObject3D ):int; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/filter/BasicRenderFilter.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.filter 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | public class BasicRenderFilter implements IRenderFilter 8 | { 9 | public function filter(array:Array):int 10 | { 11 | return 0; 12 | } 13 | 14 | } 15 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/view/IView.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.view 2 | { 3 | /** 4 | * @Author Ralph Hauwert 5 | */ 6 | public interface IView 7 | { 8 | function singleRender():void; 9 | function startRendering():void; 10 | function stopRendering(reRender:Boolean = false, cacheAsBitmap:Boolean = false):void; 11 | } 12 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/geom/renderables/IRenderable.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.geom.renderables 2 | { 3 | /** 4 | * @Author Ralph Hauwert 5 | */ 6 | 7 | import org.papervision3d.core.render.command.IRenderListItem; 8 | 9 | public interface IRenderable 10 | { 11 | function getRenderListItem():IRenderListItem; 12 | } 13 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/utils/PrecisionMode.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.utils 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | public class PrecisionMode 8 | { 9 | /* 10 | * Original precision mode. 11 | */ 12 | public static var ORIGINAL :int = 0; 13 | public static var STABLE :int = 1; 14 | } 15 | } -------------------------------------------------------------------------------- /app/client/src/view/BaseView.as: -------------------------------------------------------------------------------- 1 | package view 2 | { 3 | import org.libspark.thread.Thread; 4 | 5 | public class BaseView extends Thread 6 | { 7 | 8 | private var _stage:Unlight; 9 | 10 | // コンストラクタ 11 | public function BaseView(stage:Unlight) 12 | { 13 | _stage = stage; 14 | } 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/FrustumTestMethod.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling 2 | { 3 | public class FrustumTestMethod 4 | { 5 | 6 | /** 7 | * @Author Ralph Hauwert 8 | */ 9 | public static const NO_TESTING:int = -1; 10 | public static const BOUNDING_SPHERE:int = 0; 11 | public static const BOUNDING_BOX:int = 1; 12 | 13 | } 14 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/material/IUpdateBeforeMaterial.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.material 2 | { 3 | import org.papervision3d.core.render.data.RenderSessionData; 4 | 5 | public interface IUpdateBeforeMaterial 6 | { 7 | function updateBeforeRender(renderSessionData:RenderSessionData):void; 8 | function isUpdateable():Boolean; 9 | } 10 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/shaders/ShaderCompositeModes.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.shaders 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | public class ShaderCompositeModes 8 | { 9 | public static var PER_LAYER:int = 0; 10 | public static var PER_TRIANGLE_IN_BITMAP:int = 1; 11 | //public static var PER_SCREEN:int = 2; 12 | } 13 | } -------------------------------------------------------------------------------- /app/server/script/Perl_xinetd/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | install -m644 ../flashpolicy.xml /usr/local/etc/ 4 | install -m755 in.flashpolicyd.pl /usr/local/sbin/ 5 | install -m644 flashpolicyd.xinet /etc/xinetd.d/flashpolicyd 6 | sh -c "cat cdpservice >> /etc/services" 7 | /etc/init.d/xinetd reload 8 | perl -e 'printf "%c",0' | nc 127.0.0.1 11999 9 | exit 0 10 | -------------------------------------------------------------------------------- /app/client/lib/Version.as: -------------------------------------------------------------------------------- 1 | /** 2 | * Unlight 3 | * Copyright(c)2019 CPA This software is released under the MIT License. 4 | * http://opensource.org/licenses/mit-license.php 5 | */ 6 | 7 | package 8 | { 9 | public class Version 10 | { 11 | public static const NO:String = "1.0"; 12 | public static const REVISION:String = "9438"; 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /app/server/script/update_ranking.rb: -------------------------------------------------------------------------------- 1 | $:.unshift(File.join(File.expand_path("."), "src")) 2 | require 'pathname' 3 | require 'unlight' 4 | 5 | module Unlight 6 | case THIS_SERVER 7 | when SERVER_SB then 8 | WeeklyDuelRanking.update_ranking(SERVER_SB) 9 | EstimationRanking::update_total_duel_ranking(SERVER_SB) 10 | TotalEventRanking::start_up(SERVER_SB) 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/animation/IAnimatable.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.animation 2 | { 3 | public interface IAnimatable 4 | { 5 | /** 6 | * Plays the animation. 7 | * 8 | * @param clip Optional clip name. 9 | */ 10 | function play(clip:String=null):void; 11 | 12 | /** 13 | * Stops the animation. 14 | */ 15 | function stop():void; 16 | } 17 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/objects/special/commands/EndFill.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.objects.special.commands { import org.papervision3d.objects.special.commands.IVectorShape; import flash.display.Graphics; /** * @author Mark Barcinski */ public class EndFill implements IVectorShape { public function draw(graphics : Graphics, prevDrawn : Boolean) : Boolean { return prevDrawn; } } } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/view/layer/util/ViewportLayerSortMode.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.view.layer.util 2 | { 3 | public class ViewportLayerSortMode 4 | { 5 | public static var Z_SORT:String = "z"; 6 | public static var INDEX_SORT:String = "index"; 7 | public static var ORIGIN_SORT:String = "origin"; 8 | 9 | public function ViewportLayerSortMode() 10 | { 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/shaders/ILightShader.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.shaders 2 | { 3 | import org.papervision3d.core.render.data.RenderSessionData; 4 | import org.papervision3d.core.render.shader.ShaderObjectData; 5 | 6 | public interface ILightShader 7 | { 8 | function updateLightMatrix(sod:ShaderObjectData,renderSessionData:RenderSessionData):void; 9 | } 10 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/typography/Font3D.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.typography { /** * @author Mark Barcinski */ public class Font3D { public function get motifs():Object { //Override me return new Object(); } public function get widths():Object { //Override me return new Object(); } public function get height():Number { //Override me return -1; } } } -------------------------------------------------------------------------------- /app/server/script/Perl_xinetd/flashpolicyd.xinet: -------------------------------------------------------------------------------- 1 | service flashpolicy 2 | { 3 | disable = no 4 | wait = no 5 | socket_type = stream 6 | flags = IPv4 7 | port = 11999 8 | user = root 9 | group = root 10 | cps = = 100 3 11 | instances = UNLIMITED 12 | server = /usr/local/sbin/in.flashpolicyd.pl 13 | server_args = --file=/usr/local/etc/flashpolicy.xml 14 | } 15 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/ITriangleCuller.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling { 2 | import org.papervision3d.core.geom.renderables.Triangle3D; 3 | import org.papervision3d.core.geom.renderables.Vertex3DInstance; 4 | 5 | public interface ITriangleCuller 6 | { 7 | function testFace(face3D:Triangle3D, vertex0:Vertex3DInstance, vertex1:Vertex3DInstance, vertex2:Vertex3DInstance):Boolean; 8 | } 9 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/sort/BasicRenderSorter.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.sort 2 | { 3 | 4 | /** 5 | * @author Ralph Hauwert 6 | */ 7 | public class BasicRenderSorter implements IRenderSorter 8 | { 9 | 10 | //Sorts the renderlist by screenDepth. 11 | public function sort(array:Array):void 12 | { 13 | array.sortOn("screenZ", Array.NUMERIC); 14 | } 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/view/IViewport3D.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.view 2 | { 3 | import org.papervision3d.core.render.data.RenderSessionData; 4 | 5 | /** 6 | * @Author Ralph Hauwert 7 | */ 8 | public interface IViewport3D 9 | { 10 | function updateBeforeRender(renderSessionData:RenderSessionData):void; 11 | function updateAfterRender(renderSessionData:RenderSessionData):void; 12 | } 13 | } -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/tracer/CenterTracer.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.tracer { 2 | public class CenterTracer extends Tracer { 3 | private var _radius:Number; 4 | public function get radius():Number { 5 | return _radius; 6 | } 7 | 8 | public function CenterTracer(radius:Number) { 9 | super(); 10 | this._radius = radius; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/command/IRenderListItem.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.command 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | 8 | import flash.display.Graphics; 9 | 10 | import org.papervision3d.core.render.data.RenderSessionData; 11 | 12 | public interface IRenderListItem 13 | { 14 | function render(renderSessionData:RenderSessionData, graphics:Graphics):void; 15 | } 16 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/effects/utils/BitmapClearMode.as: -------------------------------------------------------------------------------- 1 | /** 2 | * ... 3 | * @author Default 4 | * @version 0.1 5 | */ 6 | 7 | package org.papervision3d.core.effects.utils { 8 | 9 | public class BitmapClearMode { 10 | public static const CLEAR_PRE:String = "clear_pre"; 11 | public static const CLEAR_POST:String = "clear_post"; 12 | public static const CLEAR_NEVER:String = "clear_never"; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /app/client/src/sound/bgm/BaseBGMSound.as: -------------------------------------------------------------------------------- 1 | package sound.bgm 2 | { 3 | import flash.media.*; 4 | import flash.events.*; 5 | import flash.net.URLRequest; 6 | import flash.utils.Timer; 7 | 8 | import sound.BaseSound; 9 | 10 | public class BaseBGMSound extends BaseSound 11 | { 12 | // コンストラクタ 13 | public function BaseBGMSound() 14 | { 15 | super(); 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /app/client/src/sound/se/BaseSESound.as: -------------------------------------------------------------------------------- 1 | 2 | package sound.se 3 | { 4 | import flash.media.*; 5 | import flash.events.*; 6 | import flash.net.URLRequest; 7 | import flash.utils.Timer; 8 | 9 | import sound.BaseSound; 10 | 11 | public class BaseSESound extends BaseSound 12 | { 13 | // コンストラクタ 14 | public function BaseSESound() 15 | { 16 | super(); 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /app/client/src/view/image/item/IItemBase.as: -------------------------------------------------------------------------------- 1 | // ShowとHideのスレッド返すメソッドのインターフェイス 2 | 3 | package view.image.item 4 | { 5 | import flash.display.DisplayObjectContainer; 6 | 7 | import org.libspark.thread.*; 8 | 9 | public interface IItemBase 10 | { 11 | function onEquip():void; 12 | function offEquip():void; 13 | function onSelect():void; 14 | function offSelect():void; 15 | 16 | } 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /app/server/script/create_sv_ip.rb: -------------------------------------------------------------------------------- 1 | require 'find' 2 | require 'pathname' 3 | require 'optparse' 4 | require 'fileutils' 5 | OUTPUT = false 6 | opt = OptionParser.new 7 | 8 | filename = "../server/src/server_ip.rb" 9 | 10 | file = Pathname.new(filename) 11 | ip = `wget -q -O - ipcheck.ieserver.net` 12 | 13 | file.open('w') {|f| f.puts DATA.read.gsub('__IP__',ip.chomp)} 14 | 15 | __END__ 16 | 17 | module Unlight 18 | SV_IP = "__IP__" 19 | end 20 | -------------------------------------------------------------------------------- /app/client/src/Unlight.mxml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/client/src/model/IDeck.as: -------------------------------------------------------------------------------- 1 | // アバターパーツセットを持っているオブジェ用のインターフェイス 2 | 3 | package model 4 | { 5 | import org.libspark.thread.*; 6 | 7 | // import flash.display.DisplayObjectContainer; 8 | 9 | // import org.libspark.thread.*; 10 | 11 | public interface IDeck 12 | { 13 | // キャラカードを取得 14 | function get name():String; 15 | // キャラカードIDを取得 16 | function get cardInventories():Array; 17 | } 18 | 19 | } 20 | 21 | -------------------------------------------------------------------------------- /app/client/src/sound/voice/BaseVoiceSound.as: -------------------------------------------------------------------------------- 1 | package sound.voice 2 | { 3 | import flash.media.*; 4 | import flash.events.*; 5 | import flash.net.URLRequest; 6 | import flash.utils.Timer; 7 | 8 | import sound.BaseSound; 9 | 10 | public class BaseVoiceSound extends BaseSound 11 | { 12 | // コンストラクタ 13 | public function BaseVoiceSound() 14 | { 15 | super(); 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/utils/virtualmouse/IVirtualMouseEvent.as: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Trevor McCauley 3 | * @link www.senocular.com 4 | */ 5 | package org.papervision3d.core.utils.virtualmouse 6 | { 7 | /** 8 | * Interface for virtual mouse events 9 | * allowing you to check an event for 10 | * the type of IVirtualMouseEvent to see 11 | * if it originated from VirtualMouse. 12 | */ 13 | public interface IVirtualMouseEvent {} 14 | } -------------------------------------------------------------------------------- /app/client/src/model/IAvatarParts.as: -------------------------------------------------------------------------------- 1 | // アバターパーツセットを持っているオブジェ用のインターフェイス 2 | 3 | package model 4 | { 5 | import org.libspark.thread.*; 6 | 7 | // import flash.display.DisplayObjectContainer; 8 | 9 | // import org.libspark.thread.*; 10 | 11 | public interface IAvatarParts 12 | { 13 | // 装備済みのアイテムを返す 14 | function getEquipedParts():Array; 15 | function getWaitEquipedPartsDataThread():Thread; 16 | 17 | } 18 | 19 | } 20 | 21 | -------------------------------------------------------------------------------- /app/client/script/replace.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $* の $1 を $2 に置き換えます。 3 | # 使用方法:replace "old-pattern" "new-pattern" file [file...] 4 | OLD=$1 # スクリプトの最初のパラメータ 5 | NEW=$2 # 2 番目のパラメータ 6 | shift ; shift # 最初の二つのパラメータを捨てる。次はファイル名です。 7 | for file in $* # パラメータとして与えられた全てのファイルでループします。 8 | do 9 | # OLD を NEW に置換して、テンポラリファイルに保存します。 10 | sed "s/$OLD/$NEW/g" ${file} > ${file}.new 11 | # テンポラリファイルをオリジナルファイル名にリネームします。 12 | /bin/mv ${file}.new ${file} 13 | done 14 | -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/chain/DelayChain.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.chain { 2 | import flash.events.Event; 3 | import flash.utils.Timer; 4 | import flash.events.TimerEvent; 5 | 6 | public class DelayChain extends EventChain { 7 | public function DelayChain(delay:uint) { 8 | super(new Timer(delay, 1), function(c:Chain, t:Timer):void { 9 | t.start(); 10 | }, TimerEvent.TIMER_COMPLETE); 11 | } 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/sort/NullSorter.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.sort 2 | { 3 | 4 | public class NullSorter implements IRenderSorter 5 | { 6 | 7 | /** 8 | * NullSorter(); 9 | * 10 | * Doesn't do anything to the renderlist, during the sort phase. 11 | */ 12 | public function NullSorter() 13 | { 14 | } 15 | 16 | public function sort(array:Array):void 17 | { 18 | //Do absolutely nothing 19 | } 20 | 21 | } 22 | } -------------------------------------------------------------------------------- /app/server/script/delete_all_cpu_data.rb: -------------------------------------------------------------------------------- 1 | $:.unshift(File.join(File.expand_path("."), "src")) 2 | require 'pathname' 3 | require 'unlight' 4 | $arg = ARGV.shift 5 | 6 | module Unlight 7 | puts "CPUデータを削除します(y/n)" 8 | answer = gets.chomp 9 | if answer == "y" 10 | decks = CharaCardDeck.filter({ :avatar_id=>Unlight::Player.get_cpu_player.current_avatar.id}).filter(Sequel.like(:name,"Monster: %")).all 11 | decks.each do |d| 12 | d.destroy 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /app/client/script/get_md5_str.rb: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | $:.unshift(File.join(File.expand_path("../server"), "src")) 3 | require 'digest/md5' 4 | require File::expand_path(__FILE__).gsub(/client\/script\/get_md5_str.rb/, "")+"server/script/constdata_keys.rb" 5 | 6 | dirname = File.dirname(ARGV[0]) 7 | filename = File.basename(ARGV[0]) 8 | str = File.basename(ARGV[0], ".*") 9 | str = str + IMAGEFILE_HASHKEY 10 | 11 | ret = Digest::MD5.hexdigest(str) 12 | puts dirname+"/"+filename+"."+ret 13 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/log/LogLevel.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.log 2 | { 3 | /** 4 | * @author Ralph Hauwert 5 | */ 6 | public class LogLevel 7 | { 8 | public static const LOG:int = 0; 9 | public static const INFO:int = 1; 10 | public static const DEBUG:int = 2; 11 | public static const WARNING:int = 3; 12 | public static const ERROR:int = 4; 13 | public static const FATAL:int = 5; 14 | 15 | public function LogLevel() 16 | { 17 | } 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/draw/ILineDrawer.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.draw 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | 8 | import flash.display.Graphics; 9 | 10 | import org.papervision3d.core.render.command.RenderLine; 11 | import org.papervision3d.core.render.data.RenderSessionData; 12 | 13 | public interface ILineDrawer 14 | { 15 | function drawLine(line:RenderLine, graphics:Graphics, renderSessionData:RenderSessionData):void; 16 | } 17 | } -------------------------------------------------------------------------------- /app/client/src/view/image/item/IInventoryBaseImage.as: -------------------------------------------------------------------------------- 1 | // ShowとHideのスレッド返すメソッドのインターフェイス 2 | 3 | package view.image.item 4 | { 5 | import flash.display.DisplayObjectContainer; 6 | 7 | import org.libspark.thread.*; 8 | 9 | public interface IInventoryBaseImage 10 | { 11 | function onUse():void; 12 | function offUse():void; 13 | function backButtonsEnable(b:Boolean):void; 14 | function nextButtonsEnable(b:Boolean):void; 15 | 16 | } 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /app/client/src/view/utils/SwfNameInfo.as: -------------------------------------------------------------------------------- 1 | package view.utils 2 | { 3 | import flash.display.*; 4 | 5 | public class SwfNameInfo extends Object 6 | { 7 | 8 | public static function toLog(d:DisplayObjectContainer):void 9 | { 10 | for(var i:int = 0; i < d.numChildren; i++) 11 | { 12 | log.writeLog(log.LV_FATAL, "MC NAME IS", "name:::", d.getChildAt(i).name,d.getChildAt(i)); 13 | } 14 | 15 | } 16 | 17 | 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/BitmapViewportMaterial.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials 2 | { 3 | import org.papervision3d.core.render.draw.ITriangleDrawer; 4 | import org.papervision3d.view.BitmapViewport3D; 5 | 6 | public class BitmapViewportMaterial extends BitmapMaterial implements ITriangleDrawer 7 | { 8 | public function BitmapViewportMaterial(bitmapViewport:BitmapViewport3D, precise:Boolean=false) 9 | { 10 | super(bitmapViewport.bitmapData, precise); 11 | } 12 | 13 | } 14 | } -------------------------------------------------------------------------------- /app/client/lib/org/as3s/TweenParam.as: -------------------------------------------------------------------------------- 1 | package org.as3s{ 2 | public dynamic class TweenParam { 3 | 4 | public var init:Number; 5 | public var begin:Number; 6 | public var value:Number; 7 | public var end:Number; 8 | public var change:Number; 9 | 10 | public function TweenParam(end:Number) { 11 | this.end = end; 12 | } 13 | 14 | public function start(begin:Number = 0):void { 15 | this.begin = begin; 16 | this.value = begin; 17 | this.change = end - begin; 18 | } 19 | 20 | } 21 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/shader/IShaderRenderer.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.shader 2 | { 3 | import flash.display.Sprite; 4 | 5 | import org.papervision3d.core.render.data.RenderSessionData; 6 | import org.papervision3d.materials.shaders.Shader; 7 | 8 | public interface IShaderRenderer 9 | { 10 | function render(renderSessionData:RenderSessionData):void; 11 | function clear():void; 12 | function getLayerForShader(shader:Shader):Sprite; 13 | function destroy():void; 14 | } 15 | } -------------------------------------------------------------------------------- /app/client/src/view/image/shop/IShopBase.as: -------------------------------------------------------------------------------- 1 | // ShowとHideのスレッド返すメソッドのインターフェイス 2 | 3 | package view.image.shop 4 | { 5 | import flash.display.DisplayObjectContainer; 6 | 7 | import org.libspark.thread.*; 8 | 9 | public interface IShopBase 10 | { 11 | function onEquip():void; 12 | function offEquip():void; 13 | function onSelect():void; 14 | function offSelect():void; 15 | function onTitle():void; 16 | function offTitle():void; 17 | 18 | } 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /app/client/script/dae_converter.rb: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # Specファイルのテンプレートを作るスクリプト 3 | # rakeから使う。 4 | $:.unshift(File.join(File.expand_path("."), "src")) 5 | require 'find' 6 | require 'pathname' 7 | OUTPUT = false 8 | 9 | h = Hash.new() 10 | Find.find('./public')do |f| 11 | next if File.directory?(f) 12 | # Public以下のファイルをに対して 13 | if File::extname(f) == ".dae" 14 | p './script/replace.sh "_1_-_Default" "_Default"'+f if OUTPUT 15 | system('./script/replace.sh "_1_-_Default" "_Default" '+f) 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/effects/IEffect.as: -------------------------------------------------------------------------------- 1 | /** 2 | * ... 3 | * @author Default 4 | * @version 0.1 5 | */ 6 | 7 | package org.papervision3d.core.effects { 8 | import flash.filters.BitmapFilter; 9 | 10 | import org.papervision3d.view.layer.BitmapEffectLayer; 11 | 12 | public interface IEffect { 13 | 14 | function attachEffect(layer:BitmapEffectLayer):void; 15 | function preRender():void; 16 | function postRender():void; 17 | function getEffect():BitmapFilter; 18 | 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /app/server/script/create_event_profound.rb: -------------------------------------------------------------------------------- 1 | # イベント用の渦を作成 2 | $:.unshift(File.join(File.expand_path("."), "src")) 3 | require 'pathname' 4 | require 'unlight' 5 | 6 | module Unlight 7 | if PRF_AUTO_CREATE_EVENT_FLAG 8 | owner = Player.get_prf_owner_player 9 | # 渦が発生してない状態の時のみ追加 10 | if owner.current_avatar.get_prf_inv_num <= 0 11 | pr = Profound::get_new_profound_for_group(RAID_EVENT_AUTO_CREATE_GROUP_ID,10,PRF_TYPE_MMO_EVENT) 12 | inv = owner.current_avatar.get_profound(pr,true) 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/log/PaperLogVO.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.log 2 | { 3 | 4 | /** 5 | * @author Ralph Hauwert 6 | */ 7 | public class PaperLogVO 8 | { 9 | 10 | public var level:int; 11 | public var msg:String; 12 | public var object:Object; 13 | public var arg:Array; 14 | 15 | public function PaperLogVO(level:int, msg:String, object:Object, arg:Array) 16 | { 17 | this.level = level; 18 | this.msg = msg; 19 | this.object = object; 20 | this.arg = arg; 21 | } 22 | 23 | } 24 | } -------------------------------------------------------------------------------- /app/server/bin/authserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_authserver", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | # :monitor => true, 11 | :log_output => true 12 | } 13 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/authserver",""), "/src") 14 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("authserver",""))) 15 | Daemons.run("#{f}/authentication.rb",options) 16 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/data/UserData.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.data 2 | { 3 | 4 | /** 5 | * @author Ralph Hauwert 6 | */ 7 | 8 | public class UserData 9 | { 10 | 11 | public var data:*; 12 | 13 | /** 14 | * UserData(); 15 | * 16 | * The UserData class abstracts an end-user defined data object. 17 | * 18 | * The UserData class itself can be extends for more typed setting of data. 19 | */ 20 | public function UserData(data:*=null) 21 | { 22 | this.data = data; 23 | } 24 | 25 | } 26 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/effects/utils/ConvolutionMatrices.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.effects.utils 2 | { 3 | public class ConvolutionMatrices 4 | { 5 | public static var SHARPEN:Array = [0, -1, 0, -1, 20, -1, 0, -1, 0]; 6 | public static var BRIGHTNESS:Array = [5, 5, 5, 5, 0, 5, 5, 5, 5]; 7 | public static var EXTRUDE:Array = [-30, 30, 0,-30, 30, 0,-30, 30, 0]; 8 | public static var EMBOSS:Array = [-2, -1, 0, -1, 1, 1, 0, 1, 2]; 9 | public static var BLUR:Array = [1, 1, 1, 1, 1, 1, 1, 1, 1]; 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/shadematerials/CellMaterial.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.shadematerials 2 | { 3 | import org.papervision3d.core.proto.LightObject3D; 4 | import org.papervision3d.materials.utils.LightMaps; 5 | 6 | /** 7 | * @Author Ralph Hauwert 8 | */ 9 | public class CellMaterial extends EnvMapMaterial 10 | { 11 | public function CellMaterial(light:LightObject3D, color_1:int, color_2:int, steps:int) 12 | { 13 | super(light, LightMaps.getCellMap(color_1, color_2, steps)); 14 | } 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /app/server/bin/gameserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "gameserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12006'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/game.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/gameserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "gameserver_02" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12007'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/game.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/gameserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "gameserver_03" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12008'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/game.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/gameserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "gameserver_04" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12009'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/game.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/gameserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "gameserver_05" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12010'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/game.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/gameserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "gameserver_06" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12012'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/game.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/gameserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "gameserver" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12008', '-i', '3' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => true 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/game.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/watchserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "watchserver" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12080', '-i', '1' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => true 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/watch.rb",options) 18 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/DefaultLineCuller.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling { import org.papervision3d.core.geom.renderables.Line3D; import org.papervision3d.core.culling.ILineCuller; 2 | 3 | /** * @author Seb Lee-Delisle */ public class DefaultLineCuller implements ILineCuller { public function DefaultLineCuller() { } public function testLine(line : Line3D) : Boolean { // culls if one of the points is behind the camera... return ((line.v0.vertex3DInstance.visible)&&(line.v1.vertex3DInstance.visible)); 4 | } 5 | } } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/NullTriangleCuller.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling 2 | { 3 | import org.papervision3d.core.geom.renderables.Vertex3DInstance; 4 | import org.papervision3d.core.geom.renderables.Triangle3D; 5 | 6 | public class NullTriangleCuller implements ITriangleCuller 7 | { 8 | public function NullTriangleCuller() 9 | { 10 | } 11 | 12 | public function testFace(face3D:Triangle3D, vertex0:Vertex3DInstance, vertex1:Vertex3DInstance, vertex2:Vertex3DInstance):Boolean 13 | { 14 | return true; 15 | } 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /app/server/bin/watchserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "watchserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12080', '-i', '1' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/watch.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/watchserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "watchserver_02" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12081', '-i', '2' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/watch.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/watchserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "watchserver_03" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12082', '-i', '3' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/watch.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/watchserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "watchserver_04" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12083', '-i', '4' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/watch.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/watchserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "watchserver_05" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12084', '-i', '4' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/watch.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/watchserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "watchserver_06" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12085', '-i', '4' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/watch.rb",options) 18 | -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/geom/RVertex3.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.geom { 2 | public class RVertex3 extends RVector3 { 3 | public function RVertex3(x:Number = 0, y:Number = 0, z:Number = 0) { 4 | this.x = x; 5 | this.y = y; 6 | this.z = z; 7 | } 8 | 9 | public override function toString():String { 10 | return 'RVertex3[x:' + x + ', y:' + y + ', z:' + z + ']'; 11 | } 12 | 13 | public function toVector3():RVector3 { 14 | return new RVector3(x, y, z); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/draw/IParticleDrawer.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.draw 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | 8 | import flash.display.Graphics; 9 | 10 | import org.papervision3d.core.geom.renderables.Particle; 11 | import org.papervision3d.core.render.data.RenderSessionData; 12 | 13 | public interface IParticleDrawer 14 | { 15 | function drawParticle(particle:Particle, graphics:Graphics, renderSessionData:RenderSessionData):void; 16 | function updateRenderRect(particle:Particle):void; 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /app/client/script/publish: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ruby script/update_version_file.rb 3 | ruby script/create_const_data.rb 4 | cd ../server 5 | ruby script/backup_db.rb 6 | ruby script/create_font_swf.rb 7 | cd ../client 8 | ruby script/dae_converter.rb 9 | /usr/lib/flex3/bin/mxmlc ./src/Unlight.mxml 10 | sudo cp ./src/Unlight.swf /home/www/ 11 | sudo cp -rf ./public /home/www/ 12 | find /home/www/public -regex ".*svn.*"|xargs sudo rm -rf 13 | # cd ../server/bin 14 | # sudo ./authserver restart 15 | # sudo ./lobbyserver restart 16 | # sudo ./chatserver restart 17 | # sudo ./gameserver restart 18 | -------------------------------------------------------------------------------- /app/server/bin/questserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | NAME = "questserver_01" 6 | 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12005'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/quest.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/questserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | NAME = "questserver_02" 6 | 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12006'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/quest.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/questserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | NAME = "questserver_03" 6 | 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12007'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/quest.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/questserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | NAME = "questserver_04" 6 | 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12008'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/quest.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/questserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | NAME = "questserver_05" 6 | 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12009'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/quest.rb",options) 18 | -------------------------------------------------------------------------------- /app/server/bin/questserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | NAME = "questserver_06" 6 | 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12010'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | :log_output => false 14 | } 15 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 16 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 17 | Daemons.run("#{f}/quest.rb",options) 18 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/shaders/CellShader.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.shaders 2 | { 3 | import org.papervision3d.core.proto.LightObject3D; 4 | import org.papervision3d.materials.utils.LightMaps; 5 | 6 | /** 7 | *@Author Ralph Hauwert 8 | */ 9 | public class CellShader extends EnvMapShader 10 | { 11 | 12 | public function CellShader(light:LightObject3D, color_1:int = 0xFFFFFF, color_2:int = 0x000000, steps:int = 3) 13 | { 14 | super(light, LightMaps.getCellMap(color_1, color_2, steps),null, color_2,null,null); 15 | } 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /app/client/src/view/scene/common/ICardClip.as: -------------------------------------------------------------------------------- 1 | // ShowとHideのスレッド返すメソッドのインターフェイス 2 | 3 | package view.scene.common 4 | { 5 | import org.libspark.thread.Thread; 6 | // import flash.display.DisplayObjectContainer; 7 | // import org.libspark.thread.*; 8 | 9 | import model.ICardInventory; 10 | 11 | public interface ICardClip 12 | { 13 | // 関連づけられたインベントリを返す 14 | function set cardInventory(inv:ICardInventory):void; 15 | function get cardInventory():ICardInventory; 16 | // function getEditHideThread():Thread; 17 | } 18 | 19 | } 20 | 21 | -------------------------------------------------------------------------------- /app/server/bin/chatserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "chatserver" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12012'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => true 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raidserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_raidserver", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | :ARGV => [ARGV[0],'--','-p','12050'], 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/raidserver",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("raidserver",""))) 16 | Daemons.run("#{f}/raid.rb",options) 17 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/shadematerials/PhongMaterial.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.shadematerials 2 | { 3 | import org.papervision3d.core.proto.LightObject3D; 4 | import org.papervision3d.materials.utils.LightMaps; 5 | 6 | /** 7 | * @Author Ralph Hauwert 8 | */ 9 | public class PhongMaterial extends EnvMapMaterial 10 | { 11 | public function PhongMaterial(light:LightObject3D, lightColor:uint, ambientColor:uint, specularLevel:uint) 12 | { 13 | super(light, LightMaps.getPhongMap(lightColor, ambientColor, specularLevel)); 14 | } 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/utils/RenderRecStorage.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.utils 2 | { 3 | import flash.geom.Matrix; 4 | 5 | import org.papervision3d.core.geom.renderables.Vertex3DInstance; 6 | 7 | public class RenderRecStorage 8 | { 9 | public var v0:Vertex3DInstance = new Vertex3DInstance(); 10 | public var v1:Vertex3DInstance = new Vertex3DInstance(); 11 | public var v2:Vertex3DInstance = new Vertex3DInstance(); 12 | public var mat:Matrix = new Matrix(); 13 | 14 | public function RenderRecStorage() 15 | { 16 | 17 | } 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /app/server/bin/dataserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_dataserver", 7 | :dir_mode => :normal, 8 | :ARGV => [ARGV[0],'--','-p','12032'], 9 | :dir => 'pids', 10 | :backtrace => true, 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/dataserver",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("dataserver",""))) 16 | Daemons.run("#{f}/data_lobby.rb",options) 17 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_lobbyserver", 7 | :dir_mode => :normal, 8 | :ARGV => [ARGV[0],'--','-p','12002'], 9 | :dir => 'pids', 10 | :backtrace => true, 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/lobbyserver",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("lobbyserver",""))) 16 | Daemons.run("#{f}/lobby.rb",options) 17 | -------------------------------------------------------------------------------- /app/server/bin/questserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_questserver", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | :ARGV => [ARGV[0],'--','-p','12005'], 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/questserver",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("questserver",""))) 16 | Daemons.run("#{f}/quest.rb",options) 17 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/log/event/PaperLoggerEvent.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.log.event 2 | { 3 | import flash.events.Event; 4 | 5 | import org.papervision3d.core.log.PaperLogVO; 6 | 7 | /** 8 | * @author Ralph Hauwert 9 | */ 10 | public class PaperLoggerEvent extends Event 11 | { 12 | public static const TYPE_LOGEVENT:String = "logEvent"; 13 | 14 | public var paperLogVO:PaperLogVO; 15 | 16 | public function PaperLoggerEvent(paperLogVO:PaperLogVO) 17 | { 18 | super(TYPE_LOGEVENT); 19 | this.paperLogVO = paperLogVO; 20 | } 21 | 22 | } 23 | } -------------------------------------------------------------------------------- /app/server/bin/chatserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "chatserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12010'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/chatserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "chatserver_02" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12011'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/chatserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "chatserver_03" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12012'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/chatserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "chatserver_04" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12013'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/chatserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "chatserver_05" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12014'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/chatserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "chatserver_06" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12016'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12032'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_02" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12033'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_03" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12034'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_04" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12035'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_05" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12036'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_06" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12037'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_07: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_07" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12038'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_08: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_08" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12039'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_09: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_09" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12040'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_10: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_10" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12041'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_11: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_11" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12042'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/dataserver_12: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "dataserver_12" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12043'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/data_lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "lobbyserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12002'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "lobbyserver_02" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12003'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "lobbyserver_03" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12004'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "lobbyserver_04" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12012'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "lobbyserver_05" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12013'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "lobbyserver_06" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12014'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver_07: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "lobbyserver_07" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12015'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/lobbyserver_08: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "lobbyserver_08" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12016'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/lobby.rb",options) 19 | -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/utils/StringUtil.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.utils { 2 | public class StringUtil { 3 | public static function camelize(s:String, firstLetterInUpperCase:Boolean = true):String { 4 | if (s.length == 0) return s; 5 | 6 | if (firstLetterInUpperCase) { 7 | return s.replace(/(^|_)(.)/, function():String { 8 | return String(arguments[2]).toUpperCase() 9 | }); 10 | } else { 11 | return s.substr(0, 1) + camelize(s.substring(1)); 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/server/bin/globalchatserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "globalchatserver" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12020'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => true 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/global_chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12018', '-i', '3' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => true 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raidchatserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_raidchatserver", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | :ARGV => [ARGV[0],'--','-p','12090'], 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/raidchatserver",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("raidchatserver",""))) 16 | Daemons.run("#{f}/raid_chat.rb",options) 17 | -------------------------------------------------------------------------------- /app/server/bin/raidrankserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_raidrankserver", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | :ARGV => [ARGV[0],'--','-p','12070'], 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/raidrankserver",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("raidrankserver",""))) 16 | Daemons.run("#{f}/raid_rank.rb",options) 17 | -------------------------------------------------------------------------------- /app/server/bin/raidserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raidserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12050'], 11 | # :monitor => false, 12 | :dir => 'pids', 13 | :backtrace => true, 14 | :log_output => true 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12016', '-i', '1'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_04" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12019', '-i', '4' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output =>false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_05" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12016', '-i', '5'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_08: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_08" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12019', '-i', '8' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output =>false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_09: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_09" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12016', '-i', '9'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raiddataserver: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12100'], 13 | # :monitor => false, 14 | :log_output => true 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raidserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | 7 | NAME = "raidserver_02" 8 | options = { 9 | :app_name => "ul_#{NAME}", 10 | :dir_mode => :normal, 11 | :ARGV => [ARGV[0],'--','-p','12051'], 12 | # :monitor => false, 13 | :dir => 'pids', 14 | :backtrace => true, 15 | :log_output => true 16 | } 17 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 18 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 19 | Daemons.run("#{f}/raid.rb",options) 20 | -------------------------------------------------------------------------------- /app/server/bin/raidserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | 7 | NAME = "raidserver_03" 8 | options = { 9 | :app_name => "ul_#{NAME}", 10 | :dir_mode => :normal, 11 | :ARGV => [ARGV[0],'--','-p','12052'], 12 | # :monitor => false, 13 | :dir => 'pids', 14 | :backtrace => true, 15 | :log_output => true 16 | } 17 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 18 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 19 | Daemons.run("#{f}/raid.rb",options) 20 | -------------------------------------------------------------------------------- /app/server/bin/raidserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | 7 | NAME = "raidserver_04" 8 | options = { 9 | :app_name => "ul_#{NAME}", 10 | :dir_mode => :normal, 11 | :ARGV => [ARGV[0],'--','-p','12053'], 12 | # :monitor => false, 13 | :dir => 'pids', 14 | :backtrace => true, 15 | :log_output => true 16 | } 17 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 18 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 19 | Daemons.run("#{f}/raid.rb",options) 20 | -------------------------------------------------------------------------------- /app/server/bin/raidserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | 7 | NAME = "raidserver_05" 8 | options = { 9 | :app_name => "ul_#{NAME}", 10 | :dir_mode => :normal, 11 | :ARGV => [ARGV[0],'--','-p','12054'], 12 | # :monitor => false, 13 | :dir => 'pids', 14 | :backtrace => true, 15 | :log_output => true 16 | } 17 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 18 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 19 | Daemons.run("#{f}/raid.rb",options) 20 | -------------------------------------------------------------------------------- /app/server/bin/raidserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | 7 | NAME = "raidserver_06" 8 | options = { 9 | :app_name => "ul_#{NAME}", 10 | :dir_mode => :normal, 11 | :ARGV => [ARGV[0],'--','-p','12055'], 12 | # :monitor => false, 13 | :dir => 'pids', 14 | :backtrace => true, 15 | :log_output => true 16 | } 17 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 18 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 19 | Daemons.run("#{f}/raid.rb",options) 20 | -------------------------------------------------------------------------------- /app/server/bin/raidserver_07: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | 7 | NAME = "raidserver_07" 8 | options = { 9 | :app_name => "ul_#{NAME}", 10 | :dir_mode => :normal, 11 | :ARGV => [ARGV[0],'--','-p','12056'], 12 | # :monitor => false, 13 | :dir => 'pids', 14 | :backtrace => true, 15 | :log_output => true 16 | } 17 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 18 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 19 | Daemons.run("#{f}/raid.rb",options) 20 | -------------------------------------------------------------------------------- /app/server/bin/raidserver_08: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | 7 | NAME = "raidserver_08" 8 | options = { 9 | :app_name => "ul_#{NAME}", 10 | :dir_mode => :normal, 11 | :ARGV => [ARGV[0],'--','-p','12057'], 12 | # :monitor => false, 13 | :dir => 'pids', 14 | :backtrace => true, 15 | :log_output => true 16 | } 17 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 18 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 19 | Daemons.run("#{f}/raid.rb",options) 20 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/culling/DefaultParticleCuller.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.culling 2 | { 3 | import org.papervision3d.core.geom.renderables.Particle; 4 | 5 | public class DefaultParticleCuller implements IParticleCuller 6 | { 7 | 8 | public function DefaultParticleCuller() 9 | { 10 | 11 | } 12 | 13 | public function testParticle(particle:Particle):Boolean 14 | { 15 | if(particle.material.invisible == false){ 16 | if(particle.vertex3D.vertex3DInstance.visible == true){ 17 | return true; 18 | } 19 | } 20 | return false; 21 | } 22 | 23 | } 24 | } -------------------------------------------------------------------------------- /app/server/bin/globalchatserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "globalchatserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12020'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/global_chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/globalchatserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "globalchatserver_02" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12021'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/global_chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/globalchatserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "globalchatserver_03" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12022'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/global_chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/globalchatserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "globalchatserver_04" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12023'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/global_chat.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_02" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12017', '-i', '2' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_03" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12018', '-i', '3' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_06" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12017', '-i', '6' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_07: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_07" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12018', '-i', '7' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_10: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_10" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12017', '-i', '10' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_11: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_11" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12017', '-i', '11' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_12: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_12" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12019', '-i', '12' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output =>false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_13: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_13" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12016', '-i', '13'], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_14: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_14" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12017', '-i', '14' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_15: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_15" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12018', '-i', '15' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/matchserver_16: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "matchserver_16" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :ARGV => [ARGV[0],'--','-p','12019', '-i', '16' ], 11 | :dir => 'pids', 12 | :backtrace => true, 13 | # :monitor => true, 14 | :log_output =>false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/matching.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raidrankserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_raidrankserver_01", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | :ARGV => [ARGV[0],'--','-p','12070'], 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/raidrankserver_01",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("raidrankserver_01",""))) 16 | Daemons.run("#{f}/raid_rank.rb",options) 17 | -------------------------------------------------------------------------------- /app/server/bin/raidrankserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_raidrankserver_02", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | :ARGV => [ARGV[0],'--','-p','12071'], 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/raidrankserver_02",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("raidrankserver_02",""))) 16 | Daemons.run("#{f}/raid_rank.rb",options) 17 | -------------------------------------------------------------------------------- /app/server/bin/raidrankserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_raidrankserver_03", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | :ARGV => [ARGV[0],'--','-p','12072'], 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/raidrankserver_03",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("raidrankserver_03",""))) 16 | Daemons.run("#{f}/raid_rank.rb",options) 17 | -------------------------------------------------------------------------------- /app/server/bin/raidrankserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | options = { 6 | :app_name => "ul_raidrankserver_04", 7 | :dir_mode => :normal, 8 | :dir => 'pids', 9 | :backtrace => true, 10 | :ARGV => [ARGV[0],'--','-p','12073'], 11 | # :monitor => false, 12 | :log_output => true 13 | } 14 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/raidrankserver_04",""), "/src") 15 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!("raidrankserver_04",""))) 16 | Daemons.run("#{f}/raid_rank.rb",options) 17 | -------------------------------------------------------------------------------- /app/client/src/view/utils/RemoveChild.as: -------------------------------------------------------------------------------- 1 | package view.utils 2 | { 3 | import flash.display.*; 4 | 5 | public class RemoveChild extends Object 6 | { 7 | 8 | public static function apply(d:DisplayObject):void 9 | { 10 | if (d !=null&&d.parent != null) {d.parent.removeChild(d)} 11 | 12 | } 13 | 14 | public static function all(d:DisplayObjectContainer):void 15 | { 16 | var len:int = d.numChildren; 17 | for(var i:int = len-1; i > -1; i--){ 18 | d.removeChildAt(i); 19 | } 20 | } 21 | 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /app/server/bin/raiddataserver_01: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver_01" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12060'], 13 | # :monitor => false, 14 | :log_output => true 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raiddataserver_02: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver_02" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12061'], 13 | # :monitor => false, 14 | :log_output => true 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raiddataserver_03: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver_03" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12062'], 13 | # :monitor => false, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raiddataserver_04: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver_04" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12063'], 13 | # :monitor => false, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raiddataserver_05: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver_05" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12064'], 13 | # :monitor => false, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raiddataserver_06: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver_06" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12065'], 13 | # :monitor => false, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raiddataserver_07: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver_07" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12066'], 13 | # :monitor => false, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/server/bin/raiddataserver_08: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/ruby 2 | # -*- coding: utf-8 -*- 3 | require 'rubygems' 4 | require 'daemons' 5 | 6 | NAME = "raiddataserver_08" 7 | options = { 8 | :app_name => "ul_#{NAME}", 9 | :dir_mode => :normal, 10 | :dir => 'pids', 11 | :backtrace => true, 12 | :ARGV => [ARGV[0],'--','-p','12067'], 13 | # :monitor => false, 14 | :log_output => false 15 | } 16 | f = File.join(File.expand_path(__FILE__).gsub!("/bin/#{NAME}",""), "/src") 17 | Dir.chdir(File.join(File.expand_path(__FILE__).gsub!(NAME,""))) 18 | Daemons.run("#{f}/raid_data.rb",options) 19 | -------------------------------------------------------------------------------- /app/client/src/model/GameSession.as: -------------------------------------------------------------------------------- 1 | package model 2 | { 3 | import net.*; 4 | import net.events.*; 5 | import model.ActionCard; 6 | 7 | /** 8 | * ゲームセッションクラス 9 | * 情報を扱う 10 | * 11 | */ 12 | public class GameSession extends EventDispatcher 13 | { 14 | private var _id :int; 15 | private var _foe :String; 16 | private var _myCards :Array; 17 | 18 | // コンストラクタ 19 | public function GameSession(id,foe) 20 | { 21 | _id = id; 22 | _foe = foe; 23 | _myCards = []; 24 | } 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/command/AbstractRenderListItem.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.command 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | 8 | import flash.display.Graphics; 9 | 10 | import org.papervision3d.core.render.data.RenderSessionData; 11 | 12 | public class AbstractRenderListItem implements IRenderListItem 13 | { 14 | public var screenZ:Number; 15 | 16 | public function AbstractRenderListItem() 17 | { 18 | 19 | } 20 | 21 | public function render(renderSessionData:RenderSessionData, graphics:Graphics):void 22 | { 23 | 24 | } 25 | 26 | } 27 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/objects/special/commands/MoveTo.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.objects.special.commands { import flash.display.Graphics; import org.papervision3d.core.geom.renderables.Vertex3D; /** * @author Mark Barcinski */ public class MoveTo implements IVectorShape{ public var vertex : Vertex3D; public function MoveTo(vertex : Vertex3D) { this.vertex = vertex; } public function draw(graphics : Graphics , prevDrawn : Boolean) : Boolean { if(vertex.vertex3DInstance.visible){ graphics.moveTo(vertex.vertex3DInstance.x , vertex.vertex3DInstance.y); return true; } return false; } } } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/filter/AbstractQuadrantFilter.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.filter 2 | { 3 | import org.papervision3d.cameras.Camera3D; 4 | import org.papervision3d.core.clipping.draw.Clipping; 5 | import org.papervision3d.core.render.data.QuadTree; 6 | import org.papervision3d.scenes.Scene3D; 7 | 8 | public class AbstractQuadrantFilter 9 | { 10 | public function AbstractQuadrantFilter() 11 | { 12 | } 13 | /** 14 | * Runs a quadrant filter 15 | */ 16 | public function filterTree(tree:QuadTree, scene:Scene3D, camera:Camera3D, clip:Clipping):void{ 17 | 18 | } 19 | 20 | } 21 | } -------------------------------------------------------------------------------- /app/client/src/view/SleepThread.as: -------------------------------------------------------------------------------- 1 | package view 2 | { 3 | import flash.display.Sprite; 4 | 5 | import org.libspark.thread.*; 6 | 7 | // ただスリープさせるだけのスレッド 8 | public class SleepThread extends Thread 9 | { 10 | private var _sleepTime:int; 11 | // millsecond 12 | public function SleepThread(sleepTime:int) 13 | { 14 | _sleepTime = sleepTime; 15 | } 16 | 17 | protected override function run():void 18 | { 19 | //sleep(_sleepTime); 20 | sleep(_sleepTime / Unlight.SPEED); // By_K2 (대기시간 1/2 로 조정) 21 | } 22 | 23 | } 24 | 25 | } 26 | 27 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/objects/special/commands/BeginFill.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.objects.special.commands { import org.papervision3d.objects.special.commands.IVectorShape; import flash.display.Graphics; /** * @author Mark Barcinski */ public class BeginFill implements IVectorShape { public var fillColor:uint; public var fillAlpha:Number; public function BeginFill(fillColor:uint = 0x000000, fillAlpha:Number = 1):void { this.fillColor = fillColor; this.fillAlpha = fillAlpha; } public function draw(graphics : Graphics , prevDrawn : Boolean) : Boolean { graphics.beginFill(fillColor , fillAlpha); return true; } } } -------------------------------------------------------------------------------- /app/client/src/view/IViewThread.as: -------------------------------------------------------------------------------- 1 | // ShowとHideのスレッド返すメソッドのインターフェイス 2 | 3 | package view 4 | { 5 | import flash.display.DisplayObjectContainer; 6 | 7 | import org.libspark.thread.*; 8 | 9 | public interface IViewThread 10 | { 11 | // 表示用のスレッドを返す 12 | function getHideThread(type:String=""):Thread; 13 | // 表示用のスレッドを返す 14 | function getShowThread(stage:DisplayObjectContainer, at:int = -1, type:String=""):Thread; 15 | // 設定震度をす返 16 | function get depthAt():int; 17 | // 前処理 18 | function init():void; 19 | // 後処理 20 | function final():void; 21 | } 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/tracer/CircleTracer.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.tracer { 2 | import flash.geom.Point; 3 | public class CircleTracer extends CenterTracer { 4 | public function CircleTracer(radius:Number) { 5 | super(radius); 6 | } 7 | 8 | protected override function getPoint():Point { 9 | // slow: ToDo 10 | var p:Point = new Point( 11 | Math.cos(360 / tracePoints * (times - 1) * Math.PI / 180) * radius, 12 | Math.sin(360 / tracePoints * (times - 1) * Math.PI / 180) * radius 13 | ); 14 | return matrix.transformPoint(p); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/effects/AbstractEffect.as: -------------------------------------------------------------------------------- 1 | /** 2 | * ... 3 | * @author Default 4 | * @version 0.1 5 | */ 6 | 7 | package org.papervision3d.core.effects { 8 | 9 | import flash.filters.BitmapFilter; 10 | 11 | import org.papervision3d.view.layer.BitmapEffectLayer; 12 | 13 | public class AbstractEffect implements IEffect{ 14 | 15 | function AbstractEffect(){} 16 | 17 | public function attachEffect(layer:BitmapEffectLayer):void{} 18 | public function preRender():void{} 19 | public function postRender():void{} 20 | public function getEffect():BitmapFilter{ 21 | return null; 22 | } 23 | 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/utils/virtualmouse/VirtualMouseEvent.as: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Trevor McCauley 3 | * @link www.senocular.com 4 | */ 5 | package org.papervision3d.core.utils.virtualmouse 6 | { 7 | import flash.events.Event; 8 | 9 | /** 10 | * Wrapper for the Event class to let you check to 11 | * see if an event originated from the user's mouse 12 | * or a VirtualMouse instance. 13 | */ 14 | public class VirtualMouseEvent extends Event implements IVirtualMouseEvent { 15 | public function VirtualMouseEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false){ 16 | super(type, bubbles, cancelable); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/typography/Letter3D.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.typography { /** * @author Mark Barcinski */ public interface Letter3D { function get width():Number; function set width(value:Number):void; function get height():Number; function set height(value:Number):void; function get char() : String; function set char(value:String) : void; function get font():Font3D; function set font(value:Font3D):void; //DisplayObject3D methods function get x():Number; function set x(value:Number):void; function get y():Number; function set y(value:Number):void; function get z():Number; function set z(value:Number):void; } } -------------------------------------------------------------------------------- /app/client/script/test_a.dat: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | st }.all.each do |pi| 21 | pi.end_at = pi.end_at+60*60*num 22 | pi.save_changes 23 | end 24 | end 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /app/client/src/model/events/HideMoveEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class HideMoveEvent extends Event 8 | { 9 | public static const HIDE_MOVE:String = 'hide_move'; 10 | 11 | public var distance:int; 12 | 13 | public function HideMoveEvent(type:String, d:int, bubbles:Boolean = false, cancelable:Boolean = false) 14 | { 15 | distance = d; 16 | super(type, bubbles, cancelable); 17 | } 18 | 19 | public override function toString():String { 20 | return formatToString("InTheFogEvent", "distance", "bubbles", "cancelable"); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /app/client/src/sound/bgm/MatchBGM.as: -------------------------------------------------------------------------------- 1 | package sound.bgm 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | 8 | 9 | public class MatchBGM extends BaseBGMSound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/bgm/ulbgm03.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function MatchBGM() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /app/client/src/sound/bgm/TitleBGM.as: -------------------------------------------------------------------------------- 1 | package sound.bgm 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | 8 | public class TitleBGM extends BaseBGMSound 9 | 10 | { 11 | 12 | private static const URL:String = "/public/sound/bgm/ulbgm01.mp3"; 13 | private var _url : URLRequest = new URLRequest(URL); 14 | private var _sound_obj : Sound = new Sound(); 15 | 16 | // コンストラクタ 17 | public function TitleBGM() 18 | { 19 | 20 | } 21 | // オーバライド前提 22 | protected override function get url():String 23 | { 24 | return URL; 25 | } 26 | 27 | 28 | } 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/draw/ITriangleDrawer.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render.draw 2 | { 3 | /** 4 | * @Author Ralph Hauwert 5 | */ 6 | 7 | import flash.display.BitmapData; 8 | import flash.display.Graphics; 9 | import flash.geom.Matrix; 10 | 11 | import org.papervision3d.core.render.command.RenderTriangle; 12 | import org.papervision3d.core.render.data.RenderSessionData; 13 | 14 | public interface ITriangleDrawer 15 | { 16 | function drawTriangle(tri:RenderTriangle, graphics:Graphics, renderSessionData:RenderSessionData, altBitmap:BitmapData = null, altUV:Matrix = null):void; 17 | function drawRT(rt:RenderTriangle, graphics:Graphics, renderSessionData:RenderSessionData):void; 18 | } 19 | 20 | 21 | } -------------------------------------------------------------------------------- /app/client/src/model/events/DirectionEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 方向決定 7 | public class DirectionEvent extends Event 8 | { 9 | public static const UPDATE:String = 'update'; 10 | 11 | public var dir:int; 12 | 13 | public function DirectionEvent(type:String, d:int, bubbles:Boolean = false, cancelable:Boolean = false) 14 | { 15 | dir = d; 16 | super(type, bubbles, cancelable); 17 | } 18 | 19 | public override function toString():String { 20 | return formatToString("DirectionEvent", "type", "dir", "bubbles", "cancelable"); 21 | } 22 | 23 | } 24 | 25 | 26 | } -------------------------------------------------------------------------------- /app/client/src/model/events/RaidScoreEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 方向決定 7 | public class RaidScoreEvent extends Event 8 | { 9 | public static const UPDATE:String = 'raid_score_update'; 10 | 11 | public var value:int; 12 | 13 | public function RaidScoreEvent(type:String, v:int, bubbles:Boolean = false, cancelable:Boolean = false) 14 | { 15 | value = v; 16 | super(type, bubbles, cancelable); 17 | } 18 | 19 | public override function toString():String { 20 | return formatToString("RaidScoreEvent", "type","value", "bubbles", "cancelable"); 21 | } 22 | 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /app/client/src/sound/se/LoseSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class LoseSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse15.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function LoseSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /app/client/src/sound/se/RotateCardSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class RotateCardSE extends BaseSESound 10 | 11 | { 12 | private static const URL:String = "/public/sound/se/ulse08.mp3"; 13 | private var _url : URLRequest = new URLRequest(URL); 14 | private var _sound_obj : Sound = new Sound(); 15 | 16 | // コンストラクタ 17 | public function RotateCardSE() 18 | { 19 | 20 | } 21 | // オーバライド前提 22 | protected override function get url():String 23 | { 24 | return URL; 25 | } 26 | 27 | } 28 | } 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/client/src/sound/se/TrapActionSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class TrapActionSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse20.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function TrapActionSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | } 28 | } 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/client/src/sound/se/WinSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class WinSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse16.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function WinSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/AlertSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class AlertSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse02.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function AlertSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/CardSetSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class CardSetSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse05.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function CardSetSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/ChainSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class ChainSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse24.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function ChainSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/ClickSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class ClickSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse01.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function ClickSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/PhaseSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class PhaseSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse12.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function PhaseSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/CardSetASE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class CardSetASE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse05_a.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function CardSetASE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/CardSetBSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class CardSetBSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse05_b.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function CardSetBSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/CardSetCSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class CardSetCSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse05_c.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function CardSetCSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/Click2SE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class Click2SE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse02.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function Click2SE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/Click3SE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class Click3SE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse04.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function Click3SE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/server/script/flashpolicy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/client/src/sound/se/BonusWinSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class BonusWinSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse18.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function BonusWinSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/DamageGunSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class DamageGunSE extends BaseSESound 10 | 11 | { 12 | private static const URL:String = "/public/sound/se/ulse10_f.mp3"; 13 | private var _url : URLRequest = new URLRequest(URL); 14 | private var _sound_obj : Sound = new Sound(); 15 | 16 | // コンストラクタ 17 | public function DamageGunSE() 18 | { 19 | 20 | } 21 | // オーバライド前提 22 | protected override function get url():String 23 | { 24 | return URL; 25 | } 26 | 27 | 28 | } 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/client/src/sound/se/OpenActionCardSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class OpenActionCardSE extends BaseSESound 10 | 11 | { 12 | private static const URL:String = "/public/sound/se/ulse29.mp3"; 13 | private var _url : URLRequest = new URLRequest(URL); 14 | private var _sound_obj : Sound = new Sound(); 15 | 16 | // コンストラクタ 17 | public function OpenActionCardSE() 18 | { 19 | 20 | } 21 | // オーバライド前提 22 | protected override function get url():String 23 | { 24 | return URL; 25 | } 26 | 27 | } 28 | } 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/server/script/reset_model.rb: -------------------------------------------------------------------------------- 1 | # モデルを削除する 2 | $:.unshift(File.join(File.expand_path("."), "src")) 3 | require 'pathname' 4 | require 'unlight' 5 | $arg = ARGV.shift 6 | puts $arg 7 | class String 8 | def camelize 9 | self.split(/[^a-z0-9]/i).map{ |w| w.capitalize}.join 10 | end 11 | end 12 | 13 | require "model/#{$arg}" 14 | 15 | module Unlight 16 | 17 | if eval("#{$arg.camelize}.table_exists?") 18 | col = eval ("#{$arg.camelize}.columns") 19 | puts "既存のモデルデータ#{$arg}のテーブルをリセットしますか(#{col})(y/n)" 20 | answer = gets.chomp 21 | if answer == "y" 22 | eval ("#{$arg.camelize}.create_table!") 23 | end 24 | else 25 | puts "モデルデータが存在しないのでテーブルを作ります" 26 | eval ("#{$arg.camelize}.create_table") 27 | end 28 | 29 | end 30 | -------------------------------------------------------------------------------- /app/server/script/update_const_keys.rb: -------------------------------------------------------------------------------- 1 | require 'find' 2 | require 'pathname' 3 | require 'optparse' 4 | require 'fileutils' 5 | OUTPUT = false 6 | opt = OptionParser.new 7 | 8 | filename = "../server/script/constdata_keys_jp.rb" 9 | 10 | opt.parse!(ARGV) 11 | 12 | STR = "0123456789abcdefghijklmnoprstuvwxyzABCDEFGHIJKLMNOPRSTUVWXYZ" 13 | 14 | def genSecret(len) 15 | ret = "" 16 | len.times do 17 | ret +=STR[rand(STR.size)] 18 | end 19 | ret 20 | end 21 | 22 | 23 | # keyFileを作る 24 | file = Pathname.new(filename) 25 | secret1 = genSecret(48) 26 | secret2 = genSecret(48) 27 | 28 | file.open('w') {|f| f.puts DATA.read.gsub('__CONST__',secret1).gsub('__IMAGE__',secret2)} 29 | 30 | __END__ 31 | CONSTDATA_ENCRYPTKEY = "__CONST__" 32 | IMAGEFILE_HASHKEY = "__IMAGE__" 33 | -------------------------------------------------------------------------------- /app/client/src/model/events/DeckMaxCheckEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class DeckMaxCheckEvent extends Event 8 | { 9 | public static const RESULT:String = 'deck_max_check_result'; 10 | 11 | public var ok:Boolean; 12 | 13 | public function DeckMaxCheckEvent(type:String, o:Boolean, bubbles:Boolean = false, cancelable:Boolean = false) 14 | { 15 | ok = o; 16 | super(type, bubbles, cancelable); 17 | } 18 | 19 | public override function toString():String { 20 | return formatToString("DeckMaxCheckEvent", "type", "ok", "bubbles", "cancelable"); 21 | } 22 | 23 | } 24 | 25 | 26 | } -------------------------------------------------------------------------------- /app/client/src/model/events/NGWordEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // NGWordの結果を返す 7 | public class NGWordEvent extends Event 8 | { 9 | public static const GET_RESULT:String = 'get_result'; 10 | 11 | public var result:Boolean; 12 | 13 | public function NGWordEvent(type:String, r:Boolean = false, bubbles:Boolean = false, cancelable:Boolean = false) 14 | { 15 | result = r; 16 | super(type, bubbles, cancelable); 17 | } 18 | 19 | public override function toString():String { 20 | return formatToString("NGWordEvent", "type", "result", "bubbles", "cancelable"); 21 | } 22 | 23 | } 24 | 25 | 26 | } -------------------------------------------------------------------------------- /app/client/src/sound/se/BonusClickSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class BonusClickSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse17.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function BonusClickSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/BonusLoseSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class BonusLoseSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse19.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function BonusLoseSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/CardSetTableSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class CardSetTableSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse28.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function CardSetTableSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/ChanceCardSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class ChanceCardSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse11.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function ChanceCardSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/DeckSetSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class DeckSetSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse20_a.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function DeckSetSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | 30 | } 31 | } 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/client/src/sound/se/FeatInsertSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class FeatInsertSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse13.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function FeatInsertSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/ThrowCardSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class ThrowCardSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse06.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function ThrowCardSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/DamageSwordSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class DamageSwordSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse09.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function DamageSwordSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/DeckCardClickSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class DeckCardClickSE extends BaseSESound 10 | 11 | { 12 | private static const URL:String = "/public/sound/se/ulse21.mp3"; 13 | private var _url : URLRequest = new URLRequest(URL); 14 | private var _sound_obj : Sound = new Sound(); 15 | 16 | // コンストラクタ 17 | public function DeckCardClickSE() 18 | { 19 | 20 | } 21 | // オーバライド前提 22 | protected override function get url():String 23 | { 24 | return URL; 25 | } 26 | 27 | 28 | } 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/server/script/Perl_xinetd/flashpolicy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/record/ObjectRecordPlayer.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.record { 2 | import flash.utils.ByteArray; 3 | 4 | public class ObjectRecordPlayer extends RecordPlayer { 5 | public var targetObject:Object; 6 | 7 | public function ObjectRecordPlayer(records:Array, targetObject:Object) { 8 | super(records); 9 | this.targetObject = targetObject; 10 | addEventListener(RecordEvent.EVENT, methodDispatchHandler); 11 | } 12 | 13 | protected function methodDispatchHandler(e:RecordEvent):void { 14 | var record:Array = e.record.slice(0); 15 | var methodName:String = record.splice(0, 1); 16 | targetObject[methodName].apply(targetObject, record); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/client/src/sound/se/DeckTabClickSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class DeckTabClickSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse22.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function DeckTabClickSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/sound/se/CharaCardRotateSE.as: -------------------------------------------------------------------------------- 1 | package sound.se 2 | { 3 | import flash.media.*; 4 | import flash.events.Event; 5 | import flash.net.URLRequest; 6 | 7 | import sound.se.BaseSESound; 8 | 9 | public class CharaCardRotateSE extends BaseSESound 10 | 11 | { 12 | 13 | private static const URL:String = "/public/sound/se/ulse23.mp3"; 14 | private var _url : URLRequest = new URLRequest(URL); 15 | private var _sound_obj : Sound = new Sound(); 16 | 17 | // コンストラクタ 18 | public function CharaCardRotateSE() 19 | { 20 | 21 | } 22 | // オーバライド前提 23 | protected override function get url():String 24 | { 25 | return URL; 26 | } 27 | 28 | 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/client/src/view/image/shop/CoinImage.as: -------------------------------------------------------------------------------- 1 | package view.image.shop 2 | { 3 | import flash.display.*; 4 | import flash.events.Event; 5 | 6 | import view.image.BaseImage; 7 | 8 | /** 9 | * ShopItemButton表示クラス 10 | * 11 | */ 12 | 13 | 14 | public class CoinImage extends BaseImage 15 | { 16 | 17 | // HP表示元SWF 18 | [Embed(source="../../../../data/image/shop/coin_price.swf")] 19 | private var _Source:Class; 20 | /** 21 | * コンストラクタ 22 | * 23 | */ 24 | public function CoinImage() 25 | { 26 | super(); 27 | } 28 | override protected function get Source():Class 29 | { 30 | return _Source; 31 | } 32 | 33 | 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /app/client/script/put_swf_md5_dust.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | files="$1/*" 4 | for filepath in ${files} 5 | do 6 | # echo ${filepath} 7 | if [ -d "${filepath}" ] 8 | then 9 | ./script/put_swf_md5_dust.sh ${filepath} 10 | else 11 | extension=${filepath##*.} 12 | # echo ${extension} 13 | if [ "${extension}" = "swf" ] 14 | then 15 | # D=`dirname $0` 16 | # abs_dir=`cd $D;pwd` 17 | # echo "${filepath} = swf file." 18 | GET_STRING=`ruby ./script/get_md5_str.rb ${filepath}` 19 | # echo ${GET_STRING} 20 | mv -f ${filepath} ${GET_STRING} 21 | # else 22 | # echo "${filepath} = not swf file." 23 | fi 24 | # echo "${filepath} = file." 25 | fi 26 | done 27 | 28 | -------------------------------------------------------------------------------- /app/client/src/Unlight.as: -------------------------------------------------------------------------------- 1 | package 2 | { 3 | import flash.display.*; 4 | [SWF(width="945", height="715", backgroundColor="#ffffff")] 5 | 6 | import org.libspark.thread.Thread; 7 | import org.libspark.thread.EnterFrameThreadExecutor; 8 | import view.MainView; 9 | 10 | public class Unlight extends Sprite 11 | { 12 | 13 | public var mainView:MainView; 14 | private var _container:UIComponent = new UIComponent(); 15 | 16 | public function Unlight() 17 | { 18 | addChild(_container); 19 | if (!Thread.isReady) 20 | { 21 | Thread.initialize(new EnterFrameThreadExecutor()); 22 | } 23 | mainView = new MainView(_container); 24 | mainView.start(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/client/src/model/events/SelectTabEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | import model.ActionCard; 7 | 8 | // カードの入れ替えの結果イベント 9 | public class SelectTabEvent extends Event 10 | { 11 | public static const TAB_CHANGE:String ='tab_change'; 12 | 13 | public var index:int; 14 | 15 | public function SelectTabEvent(type:String, i:int, bubbles:Boolean = false, cancelable:Boolean = false) 16 | { 17 | index = i; 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String { 22 | return formatToString("SelectTabEvent", "index", "bubbles", "cancelable"); 23 | } 24 | 25 | } 26 | 27 | 28 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/special/FogMaterial.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.special 2 | { 3 | import flash.display.Graphics; 4 | 5 | import org.papervision3d.core.render.data.RenderSessionData; 6 | import org.papervision3d.view.Viewport3D; 7 | 8 | public class FogMaterial 9 | { 10 | public var color:uint; 11 | public var alpha:Number; 12 | 13 | public function FogMaterial(color:uint=0) 14 | { 15 | this.color = color; 16 | } 17 | 18 | public function draw(renderSessionData:RenderSessionData, graphics:Graphics, alpha:Number):void{ 19 | var vp:Viewport3D = renderSessionData.viewPort; 20 | graphics.beginFill(color, alpha); 21 | graphics.drawRect(-(vp.width)*0.5, -(vp.height)*0.5, vp.width, vp.height); 22 | graphics.endFill(); 23 | } 24 | 25 | } 26 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/shaders/IShader.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.shaders 2 | { 3 | import flash.display.BitmapData; 4 | 5 | import org.papervision3d.core.geom.renderables.Triangle3D; 6 | import org.papervision3d.core.render.data.RenderSessionData; 7 | import org.papervision3d.core.render.shader.ShaderObjectData; 8 | 9 | /** 10 | * @Author Ralph Hauwert 11 | */ 12 | public interface IShader 13 | { 14 | function renderLayer(triangle:Triangle3D, renderSessionData:RenderSessionData,sod:ShaderObjectData):void; 15 | function renderTri(triangle:Triangle3D, renderSessionData:RenderSessionData,sod:ShaderObjectData,bmp:BitmapData):void; 16 | function updateAfterRender(renderSessionData:RenderSessionData, sod:ShaderObjectData):void; 17 | function destroy():void; 18 | } 19 | } -------------------------------------------------------------------------------- /app/client/src/model/events/CardLockEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // ダメージイベント 7 | public class CardLockEvent extends Event 8 | { 9 | public static const LOCK:String = 'lock_card'; 10 | public static const UNLOCK:String ='unlock_card'; 11 | 12 | public var id:int; 13 | 14 | public function CardLockEvent(type:String, i:int = 0, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | id = i; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String { 21 | return formatToString("CardLockEvent", "type", "id", "bubbles", "cancelable"); 22 | } 23 | 24 | } 25 | 26 | 27 | } -------------------------------------------------------------------------------- /app/client/src/model/events/QuestMapEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // import model.ActionCard; 7 | 8 | // チャンネルイベント 9 | public class QuestMapEvent extends Event 10 | { 11 | public static const UPDATE:String ='update'; 12 | 13 | public var ids:Array = []; 14 | 15 | public function QuestMapEvent(type:String, i:Array, bubbles:Boolean = false, cancelable:Boolean = false) 16 | { 17 | ids = i; 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String 22 | { 23 | return formatToString("QuestMapEvent", "type", "ids", "bubbles", "cancelable"); 24 | } 25 | 26 | } 27 | 28 | 29 | } -------------------------------------------------------------------------------- /app/client/src/view/image/shop/ShopBuyParamBar.as: -------------------------------------------------------------------------------- 1 | package view.image.shop 2 | { 3 | import flash.display.*; 4 | import flash.events.Event; 5 | 6 | import view.image.BaseImage; 7 | 8 | /** 9 | * ShopBuyParamBar表示クラス 10 | * 11 | */ 12 | 13 | 14 | public class ShopBuyParamBar extends BaseImage 15 | { 16 | 17 | // HP表示元SWF 18 | [Embed(source="../../../../data/image/shop/shop_buy.swf")] 19 | private var _Source:Class; 20 | /** 21 | * コンストラクタ 22 | * 23 | */ 24 | public function ShopBuyParamBar() 25 | { 26 | super(); 27 | } 28 | override protected function get Source():Class 29 | { 30 | return _Source; 31 | } 32 | 33 | 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /app/server/data/csv/ja/MonsterTreasureInventories.csv: -------------------------------------------------------------------------------- 1 | "id","cpu_card_data_id","treasure_data_id","num","step" 2 | 1,30044,80022,1,20 3 | 2,30045,80023,1,20 4 | 3,30046,10001,1,5 5 | 4,30047,10002,1,6 6 | 5,30048,10003,1,7 7 | 6,30049,10004,1,8 8 | 7,30050,10005,1,9 9 | 8,30051,10001,2,10 10 | 9,30052,10002,2,11 11 | 10,30053,10003,2,12 12 | 11,30054,10004,2,13 13 | 12,30055,10005,2,14 14 | 13,30056,10001,1,5 15 | 14,30057,10002,1,6 16 | 15,30058,10003,1,7 17 | 16,30059,10004,1,8 18 | 17,30060,10005,1,9 19 | 18,30061,10001,2,10 20 | 19,30062,10002,2,11 21 | 20,30063,10003,2,12 22 | 21,30064,10004,2,13 23 | 22,30065,10005,2,14 24 | 23,30066,10001,1,5 25 | 24,30067,10002,1,6 26 | 25,30068,10003,1,7 27 | 26,30069,10004,1,8 28 | 27,30070,10005,1,9 29 | 28,30071,10001,2,10 30 | 29,30072,10002,2,11 31 | 30,30073,10003,2,12 32 | -------------------------------------------------------------------------------- /app/client/src/model/events/AvatarItemEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class AvatarItemEvent extends Event 8 | { 9 | public static const GET_ITEM:String = 'get_item'; 10 | public static const USE_ITEM:String = 'use_item'; 11 | 12 | public var id:int; 13 | 14 | public function AvatarItemEvent(type:String, i:int = 0, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | id = i; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String { 21 | return formatToString("AvatarItemEvent", "type", "id", "bubbles", "cancelable"); 22 | } 23 | 24 | } 25 | 26 | 27 | } -------------------------------------------------------------------------------- /app/client/src/model/events/DuelBonusEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 方向決定 7 | public class DuelBonusEvent extends Event 8 | { 9 | public static const GET:String = 'get'; 10 | 11 | public var kind:int; 12 | public var value:int; 13 | 14 | public function DuelBonusEvent(type:String, k:int,v:int, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | kind = k; 17 | value = v; 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String { 22 | return formatToString("DuelBonusEvent", "type", "kind", "value", "bubbles", "cancelable"); 23 | } 24 | 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /app/client/src/model/events/RotateCardEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | import model.ActionCard; 7 | 8 | // カードの入れ替えの結果イベント 9 | public class RotateCardEvent extends Event 10 | { 11 | public static const CARD_ROTATE:String ='card_rotate'; 12 | 13 | public var up:Boolean; 14 | 15 | public function ReplaceCardEvent(type:String, u:Boolean, bubbles:Boolean = false, cancelable:Boolean = false) 16 | { 17 | 18 | up = u; 19 | super(type, bubbles, cancelable); 20 | } 21 | 22 | public override function toString():String { 23 | return formatToString("RotateCardEvent", "up", "bubbles", "cancelable"); 24 | } 25 | 26 | } 27 | 28 | 29 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/math/Ray3D.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.math 2 | { 3 | import org.papervision3d.core.math.Number3D; 4 | 5 | public class Ray3D 6 | { 7 | public var x:Number; 8 | public var y:Number; 9 | public var z:Number; 10 | public var dx:Number; 11 | public var dy:Number; 12 | public var dz:Number; 13 | 14 | public function Ray3D(x:Number = 0, y:Number = 0, z:Number = 0, dx:Number=0, dy:Number=0, dz:Number=0) 15 | { 16 | this.x = x; 17 | this.y = y; 18 | this.z = z; 19 | this.dx = dx; 20 | this.dy = dy; 21 | this.dz = dz; 22 | } 23 | 24 | public function get o():Number3D{ 25 | return new Number3D(x, y, z); 26 | } 27 | 28 | public function get d():Number3D{ 29 | return new Number3D(dx, dy, dz); 30 | } 31 | 32 | 33 | 34 | } 35 | } -------------------------------------------------------------------------------- /app/client/src/model/events/QuestFinishEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // import model.ActionCard; 7 | 8 | // チャンネルイベント 9 | public class QuestFinishEvent extends Event 10 | { 11 | public static const FINISH:String ='finish'; 12 | 13 | public var result:int; 14 | 15 | public function QuestFinishEvent(type:String, i:int, bubbles:Boolean = false, cancelable:Boolean = false) 16 | { 17 | result = i; 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String 22 | { 23 | return formatToString("QuestFinishEvent", "type", "result", "bubbles", "cancelable"); 24 | } 25 | 26 | } 27 | 28 | 29 | } -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/tracer/LineTracer.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.tracer { 2 | import flash.geom.Point; 3 | public class LineTracer extends Tracer { 4 | private var _length:Number; 5 | public function get length():Number { 6 | return _length; 7 | } 8 | 9 | public function set length(__length:Number):void { 10 | _length = __length; 11 | } 12 | 13 | public function LineTracer(length:Number) { 14 | super(); 15 | this._length = length; 16 | } 17 | 18 | protected override function getPoint():Point { 19 | var p:Point = new Point( 20 | length * (times - 1) / tracePoints, 0 21 | ); 22 | return matrix.transformPoint(p); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/client/src/model/events/InTheFogEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class InTheFogEvent extends Event 8 | { 9 | public static const PLAYER:String = 'player_range'; 10 | public static const FOE:String = 'foe_range'; 11 | 12 | public var range:Array; 13 | 14 | public function InTheFogEvent(type:String, r:Array, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | range = r; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String { 21 | return formatToString("InTheFogEvent", "alpha", "enabled", "distance", "truth_distance", "bubbles", "cancelable"); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /app/client/src/model/events/MatchingRoomEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // マッチング時のイベント 7 | public class MatchingRoomEvent extends Event 8 | { 9 | public static const UPDATE:String = "update"; 10 | public static const ADD_ROOM:String = 'add_room'; 11 | public static const ROOM_JOIN:String = 'join_room' 12 | 13 | public function MatchingRoomEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) 14 | { 15 | super(type, bubbles, cancelable); 16 | } 17 | 18 | public override function toString():String 19 | { 20 | return formatToString("MatchingRoomEvent", "type", "bubbles", "cancelable"); 21 | } 22 | 23 | } 24 | 25 | 26 | } -------------------------------------------------------------------------------- /app/client/lib/SingleConnectionChecker.as: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Unlight 4 | * Copyright(c)2019 CPA This software is released under the MIT License. 5 | * http://opensource.org/licenses/mit-license.php 6 | */ 7 | 8 | package 9 | { 10 | import flash.net.LocalConnection 11 | 12 | 13 | public class SingleConnectionChecker extends LocalConnection 14 | { 15 | 16 | private var _isExistOther:Boolean = false; 17 | 18 | public function SingleConnectionChecker(connectionName:String):void 19 | { 20 | } 21 | 22 | public function ping():void 23 | { 24 | log.writeLog(log.LV_FATAL, this, "ping!"); 25 | } 26 | 27 | public function isExitsO():Boolean 28 | { 29 | return _isExistOther; 30 | } 31 | 32 | 33 | } 34 | } -------------------------------------------------------------------------------- /app/client/lib/com/rails2u/record/RecordEvent.as: -------------------------------------------------------------------------------- 1 | package com.rails2u.record { 2 | import flash.events.Event; 3 | 4 | public class RecordEvent extends Event { 5 | public static const START:String = 'start'; 6 | public static const PLAY:String = 'play'; 7 | public static const STOP:String = 'stop'; 8 | public static const PAUSE:String = 'pause'; 9 | public static const FINISH:String = 'finish'; 10 | 11 | public static const EVENT:String = 'event'; 12 | 13 | public function RecordEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, record:Array = null):void { 14 | super(type, bubbles, cancelable); 15 | 16 | if (record) 17 | this.record = record; 18 | } 19 | public var record:Array; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/render/IRenderEngine.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.render 2 | { 3 | 4 | /** 5 | * @Author Ralph Hauwert 6 | */ 7 | import org.papervision3d.core.proto.CameraObject3D; 8 | import org.papervision3d.core.proto.SceneObject3D; 9 | import org.papervision3d.core.render.command.IRenderListItem; 10 | import org.papervision3d.core.render.command.RenderableListItem; 11 | import org.papervision3d.core.render.data.RenderStatistics; 12 | import org.papervision3d.view.Viewport3D; 13 | 14 | public interface IRenderEngine 15 | { 16 | function renderScene(scene:SceneObject3D, camera:CameraObject3D, viewPort:Viewport3D):RenderStatistics 17 | function addToRenderList(renderCommand:RenderableListItem):int; 18 | function removeFromRenderList(renderCommand:IRenderListItem):int; 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /app/client/script/update_version_file.rb: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | require 'find' 3 | require 'pathname' 4 | 5 | filename = "./lib/Version.as" 6 | MAIN_VERSION = "Community 1." 7 | OUTPUT = false 8 | 9 | no = MAIN_VERSION 10 | revision = "Test" 11 | 12 | #SVN 13 | #info = `svn info` 14 | #revision = /リビジョン:\s(\d*)$/.match(info).to_a[1] 15 | 16 | #git 17 | # cmd = "git log -1" 18 | # change_log = `#{cmd}` 19 | # revision = /@(\d*) / =~ change_log 20 | 21 | p revision if OUTPUT 22 | 23 | file = Pathname.new(filename) 24 | file.open('w') {|f| f.puts DATA.read.gsub('__NO__', no).gsub('__REVISION__', revision) } 25 | 26 | __END__ 27 | package 28 | { 29 | public class Version 30 | { 31 | public static const NO:String = "__NO__"; 32 | public static const REVISION:String = "__REVISION__"; 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/lights/PointLight3D.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.lights 2 | { 3 | import org.papervision3d.core.math.Number3D; 4 | import org.papervision3d.core.proto.LightObject3D; 5 | 6 | public class PointLight3D extends LightObject3D 7 | { 8 | public static var DEFAULT_POS:Number3D = new Number3D( 0, 0, -1000 ); 9 | 10 | /** 11 | * Constructor. 12 | * 13 | * @param showLight A Boolean value indicating whether the light is visible. 14 | * @param flipped A Boolean value indicating whether to flip the light-direction (needed for correct DAE-shading). 15 | */ 16 | public function PointLight3D(showLight:Boolean = false, flipped:Boolean = false) 17 | { 18 | super(showLight, flipped); 19 | x = DEFAULT_POS.x; 20 | y = DEFAULT_POS.y; 21 | z = DEFAULT_POS.z; 22 | } 23 | 24 | } 25 | } -------------------------------------------------------------------------------- /app/client/src/view/image/common/StoryImage.as: -------------------------------------------------------------------------------- 1 | package view.image.common 2 | { 3 | 4 | import flash.display.*; 5 | import flash.events.Event; 6 | import flash.events.MouseEvent; 7 | 8 | import mx.core.UIComponent; 9 | 10 | import view.image.BaseLoadImage; 11 | 12 | /** 13 | * StoryImage表示クラス 14 | * 15 | */ 16 | 17 | 18 | public class StoryImage extends BaseLoadImage 19 | { 20 | 21 | 22 | private var _obverse:Boolean = false; 23 | 24 | /** 25 | * コンストラクタ 26 | * 27 | */ 28 | public function StoryImage(url:String ) 29 | { 30 | super(url); 31 | } 32 | 33 | public override function init():void 34 | { 35 | _root.cacheAsBitmap = true; 36 | } 37 | 38 | 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /app/client/src/view/image/shop/SignImage.as: -------------------------------------------------------------------------------- 1 | package view.image.shop 2 | { 3 | import flash.display.*; 4 | import flash.events.Event; 5 | 6 | import view.image.BaseImage; 7 | 8 | /** 9 | * SignImaage表示クラス 10 | * 11 | */ 12 | 13 | 14 | public class SignImage extends BaseImage 15 | { 16 | 17 | // HP表示元SWF 18 | [Embed(source="../../../../data/image/shop/sign_price.swf")] 19 | private var _Source:Class; 20 | private var _type:int = 0; 21 | 22 | /** 23 | * コンストラクタ 24 | * 25 | */ 26 | public function SignImage() 27 | { 28 | super(); 29 | } 30 | override protected function get Source():Class 31 | { 32 | return _Source; 33 | } 34 | 35 | 36 | } 37 | 38 | } 39 | 40 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/geom/renderables/Triangle3DInstance.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.geom.renderables 2 | { 3 | import flash.display.Sprite; 4 | 5 | import org.papervision3d.core.math.Number3D; 6 | import org.papervision3d.objects.DisplayObject3D; 7 | 8 | public class Triangle3DInstance 9 | { 10 | public var instance:DisplayObject3D; 11 | 12 | /** 13 | * container is initialized via DisplayObject3D's render method IF DisplayObject3D.faceLevelMode is set to true 14 | */ 15 | public var container:Sprite; 16 | public var visible:Boolean = false; 17 | public var screenZ:Number; 18 | public var faceNormal:Number3D; 19 | 20 | public function Triangle3DInstance(face:Triangle3D, instance:DisplayObject3D) 21 | { 22 | this.instance = instance; 23 | faceNormal = new Number3D(); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /app/client/src/model/events/CharaCardEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class CharaCardEvent extends Event 8 | { 9 | public static const GET_CHARA_CARD:String = 'get_chara_card'; 10 | public static const COPY_CHARA_CARD:String = 'copy_chara_card'; 11 | 12 | public var id:int; 13 | 14 | public function CharaCardEvent(type:String, i:int = 0, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | id = i; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String { 21 | return formatToString("CharaCardEvent", "type", "id", "bubbles", "cancelable"); 22 | } 23 | 24 | } 25 | 26 | 27 | } -------------------------------------------------------------------------------- /app/client/src/model/events/DetermineMoveEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 移動決定 7 | public class DetermineMoveEvent extends Event 8 | { 9 | public static const UPDATE:String = 'update'; 10 | 11 | public var pow:int; 12 | public var foePow:int; 13 | 14 | public function DetermineMoveEvent(type:String, p:int, fp:int, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | pow = p; 17 | foePow = fp; 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String { 22 | return formatToString("DetermineMoveEvent", "type", "pow","foePow", "bubbles", "cancelable"); 23 | } 24 | 25 | } 26 | 27 | 28 | } -------------------------------------------------------------------------------- /app/client/src/model/events/FeatSceneEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 必殺技表示のイベント 7 | public class FeatSceneEvent extends Event 8 | { 9 | public static const PLAYER_FEAT_USE:String ='player_feat_use'; 10 | public static const FOE_FEAT_USE:String ='foe_feat_use'; 11 | 12 | public var id:int; 13 | 14 | public function FeatSceneEvent(type:String, i:int, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | id = i; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String { 21 | return formatToString("FeatSceneEvent", "type", "actionCards", "bubbles", "cancelable"); 22 | } 23 | 24 | } 25 | 26 | 27 | } -------------------------------------------------------------------------------- /app/client/src/view/utils/TopView.as: -------------------------------------------------------------------------------- 1 | package view.utils 2 | { 3 | import flash.display.*; 4 | import flash.events.Event; 5 | import flash.events.*; 6 | import flash.ui.Keyboard; 7 | 8 | import mx.containers.*; 9 | import mx.collections.ArrayCollection; 10 | import mx.controls.*; 11 | import mx.events.*; 12 | 13 | import view.image.BaseImage; 14 | 15 | import controller.TitleCtrl; 16 | 17 | import model.Option; 18 | 19 | /** 20 | * 取得確認パネル 21 | * 22 | */ 23 | 24 | public class TopView extends Object 25 | { 26 | 27 | 28 | 29 | public static function enable(e:Boolean):void 30 | { 31 | Unlight.INS.topContainer.mouseEnabled = e; 32 | Unlight.INS.topContainer.mouseChildren = e; 33 | } 34 | 35 | 36 | 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/core/material/AbstractSmoothShadeMaterial.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.core.material 2 | { 3 | import flash.geom.Matrix; 4 | 5 | import org.papervision3d.core.render.draw.ITriangleDrawer; 6 | import org.papervision3d.core.render.material.IUpdateBeforeMaterial; 7 | 8 | /** 9 | * @Author Ralph Hauwert 10 | */ 11 | public class AbstractSmoothShadeMaterial extends AbstractLightShadeMaterial implements ITriangleDrawer, IUpdateBeforeMaterial 12 | { 13 | protected var transformMatrix:Matrix; 14 | protected var triMatrix:Matrix; 15 | 16 | public function AbstractSmoothShadeMaterial() 17 | { 18 | super(); 19 | 20 | } 21 | 22 | override protected function init():void 23 | { 24 | super.init(); 25 | transformMatrix = new Matrix(); 26 | triMatrix = new Matrix(); 27 | } 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /app/client/src/model/events/RagePassiveEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 方向決定 7 | public class RagePassiveEvent extends Event 8 | { 9 | public static const ON:String = 'rage_passive_on'; 10 | public static const OFF:String = 'rage_passive_off'; 11 | 12 | public var charaSet:Array; /* of int */ ; 13 | 14 | public function RagePassiveEvent(type:String, cs:Array, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | charaSet = cs; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String { 21 | return formatToString("RagePassiveEvent", "type","charaSet", "bubbles", "cancelable"); 22 | } 23 | 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /app/client/src/model/events/StuffedToysSetEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 必殺技表示のイベント 7 | public class StuffedToysSetEvent extends Event 8 | { 9 | public static const PLAYER_SET:String ='player_stuffed_toys_set'; 10 | public static const FOE_SET:String ='foe_stuffed_toys_set'; 11 | 12 | public var num:int; 13 | 14 | public function StuffedToysSetEvent(type:String, n:int, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | num = n; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String { 21 | return formatToString("StuffedToysSetEvent", "num", "bubbles", "cancelable"); 22 | } 23 | 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /app/client/src/model/events/CombineEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // カード合成イベント 7 | public class CombineEvent extends Event 8 | { 9 | public static const COMBINE:String ='combine'; 10 | public static const COMBINE_SUCCESS:String = 'combine_success'; 11 | 12 | public var invIds:String; 13 | 14 | public function CombineEvent(type:String, i:String = "", bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | invIds = i; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String 21 | { 22 | return formatToString("CombineEvent", "type", "invIds", "bubbles", "cancelable"); 23 | } 24 | 25 | } 26 | 27 | 28 | } -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/events/RendererEvent.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.events 2 | { 3 | import flash.events.Event; 4 | 5 | import org.papervision3d.core.render.data.RenderSessionData; 6 | 7 | public class RendererEvent extends Event 8 | { 9 | public static const RENDER_DONE:String = "renderDone"; 10 | public static const PROJECTION_DONE:String = "projectionDone"; 11 | 12 | public var renderSessionData:RenderSessionData; 13 | 14 | public function RendererEvent(type:String, renderSessionData:RenderSessionData) 15 | { 16 | super(type); 17 | this.renderSessionData = renderSessionData; 18 | } 19 | 20 | public function clear():void 21 | { 22 | renderSessionData = null; 23 | } 24 | 25 | override public function clone():Event 26 | { 27 | return new RendererEvent(type, renderSessionData); 28 | } 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /app/client/src/view/ClousureThread.as: -------------------------------------------------------------------------------- 1 | package view 2 | { 3 | import org.libspark.thread.*; 4 | import flash.utils.getQualifiedClassName; 5 | 6 | // もらったクロージャを実行するだけのスレッド 7 | public class ClousureThread extends Thread 8 | { 9 | private var _func:Function; 10 | private var _args:Array; 11 | 12 | public function ClousureThread(func:Function, args:Array =null) 13 | { 14 | _func = func; 15 | _args = args; 16 | } 17 | 18 | protected override function run():void 19 | { 20 | // log.writeLog(log.LV_WARN, this, "clousur", _func,_args); 21 | if(null != _func) 22 | { 23 | // _func(); 24 | _func.apply(this, _args); 25 | _func =null; 26 | } 27 | } 28 | 29 | } 30 | 31 | } 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/client/lib/org/papervision3d/materials/special/VectorShapeMaterial.as: -------------------------------------------------------------------------------- 1 | package org.papervision3d.materials.special { import org.papervision3d.core.proto.MaterialObject3D; import org.papervision3d.core.render.data.RenderSessionData; import org.papervision3d.objects.special.VectorShape3D; import org.papervision3d.objects.special.commands.IVectorShape; import flash.display.Graphics; /** * @author Mark Barcinski */ public class VectorShapeMaterial extends MaterialObject3D { public function VectorShapeMaterial() { } public function drawShape(vectorShape : VectorShape3D, graphics : Graphics, renderSessionData : RenderSessionData) : void { var prevDrawn : Boolean = false; for (var i:int=0; i 8 | * A scene is the place where objects are placed, it contains the 3D environment. 9 | */ 10 | public class Scene3D extends SceneObject3D 11 | { 12 | // ___________________________________________________________________ N E W 13 | // 14 | // NN NN EEEEEE WW WW 15 | // NNN NN EE WW WW WW 16 | // NNNNNN EEEE WWWWWWWW 17 | // NN NNN EE WWW WWW 18 | // NN NN EEEEEE WW WW 19 | 20 | /** 21 | * The Scene3D class lets you create a scene where all objects are rendered in the same container. 22 | */ 23 | public function Scene3D() 24 | { 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /app/client/src/model/events/PassiveSkillSceneEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 必殺技表示のイベント 7 | public class PassiveSkillSceneEvent extends Event 8 | { 9 | public static const PLAYER_PASSIVE_SKILL_USE:String ='player_passive_use'; 10 | public static const FOE_PASSIVE_SKILL_USE:String ='foe_passive_use'; 11 | 12 | public var id:int; 13 | 14 | public function PassiveSkillSceneEvent(type:String, i:int, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | id = i; 17 | super(type, bubbles, cancelable); 18 | } 19 | 20 | public override function toString():String { 21 | return formatToString("PassiveSkillSceneEvent", "type", "actionCards", "bubbles", "cancelable"); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /app/client/src/model/events/AvatarPartEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class AvatarPartEvent extends Event 8 | { 9 | public static const GET_PART:String = 'get_part'; 10 | public static const EQUIP_PART:String = 'equip_part'; 11 | public static const VANISH_PART:String = 'vanish_part'; 12 | 13 | public var id:int; 14 | 15 | public function AvatarPartEvent(type:String, i:int = 0, bubbles:Boolean = false, cancelable:Boolean = false) 16 | { 17 | id = i; 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String { 22 | return formatToString("AvatarPartEvent", "type", "id", "bubbles", "cancelable"); 23 | } 24 | 25 | } 26 | 27 | 28 | } -------------------------------------------------------------------------------- /app/client/src/model/events/MatchButtonEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // import model.ActionCard; 7 | 8 | // マッチングのボタンイベント 9 | public class MatchButtonEvent extends Event 10 | { 11 | public static const CREATE:String ='create'; 12 | public static const JOIN:String ='join'; 13 | public static const FRIEND:String ='friend'; 14 | public static const QUICK:String ='quick'; 15 | 16 | public function MatchButtonEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) 17 | { 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String 22 | { 23 | return formatToString("BuffEvent", "type", "bubbles", "cancelable"); 24 | } 25 | 26 | } 27 | 28 | 29 | } -------------------------------------------------------------------------------- /app/client/src/model/events/SelectItemEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | import view.scene.item.ItemInventoryClip; 7 | 8 | // カードの入れ替えの結果イベント 9 | public class SelectItemEvent extends Event 10 | { 11 | public static const ITEM_CHANGE:String ='item_change'; 12 | public static const SLOT_CARD_CHANGE:String ='slot_card_change'; 13 | 14 | public var item:*; 15 | 16 | public function SelectItemEvent(type:String, i:*, bubbles:Boolean = false, cancelable:Boolean = false) 17 | { 18 | item = i; 19 | super(type, bubbles, cancelable); 20 | } 21 | 22 | public override function toString():String { 23 | return formatToString("SelectItemEvent", "item", "bubbles", "cancelable"); 24 | } 25 | 26 | } 27 | 28 | 29 | } -------------------------------------------------------------------------------- /app/client/script/as3testtemplate.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require 'pathname' 3 | if ARGV.empty? 4 | warn 'as3template Foo.as' 5 | exit 1 6 | end 7 | 8 | name = ARGV.shift 9 | file = Pathname.new(name) 10 | 11 | if file.exist? 12 | warn "#{file} is exist." 13 | exit 1 14 | end 15 | 16 | file.open('w') {|f| f.puts DATA.read.gsub('_NAME_', name.sub('.as', '')) } 17 | 18 | __END__ 19 | package { 20 | import flexunit.framework.TestCase; 21 | import flexunit.framework.TestSuite; 22 | super(methodName); 23 | } 24 | public static function suite():TestSuite { 25 | var suite:TestSuite = new TestSuite(); 26 | 27 | return suite; 28 | } 29 | public function testToXXX():void { 30 | var xx:Number = 0; 31 | var xxx:Number = 0; 32 | assertEquals("0は0", 1, xx); 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /app/client/src/model/events/AvatarQuestEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class AvatarQuestEvent extends Event 8 | { 9 | public static const GET_QUEST:String = 'get_quest'; 10 | public static const USE_QUEST:String = 'use_quest'; 11 | 12 | public var obj:*; 13 | public var id:int; 14 | 15 | public function AvatarQuestEvent(type:String, o:* = null, i:int = 0, bubbles:Boolean = false, cancelable:Boolean = false) 16 | { 17 | id = i 18 | obj = o; 19 | super(type, bubbles, cancelable); 20 | } 21 | 22 | public override function toString():String { 23 | return formatToString("AvatarQuestEvent", "type", "obj", "id", "bubbles", "cancelable"); 24 | } 25 | 26 | } 27 | 28 | 29 | } -------------------------------------------------------------------------------- /app/client/src/model/events/ChannelEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // import model.ActionCard; 7 | 8 | // チャンネルイベント 9 | public class ChannelEvent extends Event 10 | { 11 | public static const INIT:String ='init'; 12 | public static const JOIN:String ='join'; 13 | public static const EXIT:String ='exit'; 14 | 15 | public var id:int; 16 | 17 | public function ChannelEvent(type:String, i:int = 0, bubbles:Boolean = false, cancelable:Boolean = false) 18 | { 19 | id = i; 20 | super(type, bubbles, cancelable); 21 | } 22 | 23 | public override function toString():String 24 | { 25 | return formatToString("ChannelEvent", "type", "id", "bubbles", "cancelable"); 26 | } 27 | 28 | } 29 | 30 | 31 | } -------------------------------------------------------------------------------- /app/client/src/model/events/SelectShopEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | import view.scene.shop.ShopItemInventoryClip; 7 | 8 | // カードの入れ替えの結果イベント 9 | public class SelectShopEvent extends Event 10 | { 11 | public static const ITEM_CHANGE:String ='item_change'; 12 | public static const SLOT_CARD_CHANGE:String ='slot_card_change'; 13 | 14 | public var item:*; 15 | 16 | public function SelectShopEvent(type:String, i:*, bubbles:Boolean = false, cancelable:Boolean = false) 17 | { 18 | item = i; 19 | super(type, bubbles, cancelable); 20 | } 21 | 22 | public override function toString():String { 23 | return formatToString("SelectShopEvent", "item", "bubbles", "cancelable"); 24 | } 25 | 26 | } 27 | 28 | 29 | } -------------------------------------------------------------------------------- /app/client/script/as3template.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require 'pathname' 3 | if ARGV.empty? 4 | warn 'as3template Foo.as' 5 | exit 1 6 | end 7 | 8 | name = ARGV.shift 9 | file = Pathname.new(name) 10 | 11 | if file.exist? 12 | warn "#{file} is exist." 13 | exit 1 14 | end 15 | 16 | file.open('w') {|f| f.puts DATA.read.gsub('_NAME_', name.sub('.as', '')) } 17 | 18 | __END__ 19 | package { 20 | import flash.display.Sprite; 21 | import flash.display.StageAlign; 22 | import flash.display.StageScaleMode; 23 | 24 | [SWF(frameRate=60, background=0x000000)] 25 | public class _NAME_ extends Sprite { 26 | public function _NAME_() { 27 | stage.align = StageAlign.TOP_LEFT; 28 | stage.scaleMode = StageScaleMode.NO_SCALE; 29 | init(); 30 | } 31 | 32 | public function init():void { 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/client/src/model/events/SlotCardEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class SlotCardEvent extends Event 8 | { 9 | public static const GET_EVENT_CARD:String = 'get_event_card'; 10 | public static const GET_EQUIP_CARD:String = 'get_equip_card'; 11 | public static const GET_WEAPON_CARD:String = 'get_weapon_card'; 12 | 13 | public var id:int; 14 | 15 | public function SlotCardEvent(type:String, i:int = 0, bubbles:Boolean = false, cancelable:Boolean = false) 16 | { 17 | id = i; 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String { 22 | return formatToString("SlotCardEvent", "type", "id", "bubbles", "cancelable"); 23 | } 24 | 25 | } 26 | 27 | 28 | } -------------------------------------------------------------------------------- /app/client/src/model/events/AvatarSaleEvent.as: -------------------------------------------------------------------------------- 1 | package model.events 2 | { 3 | import flash.utils.ByteArray; 4 | import flash.events.Event; 5 | 6 | // 決定 7 | public class AvatarSaleEvent extends Event 8 | { 9 | public static const SALE_START:String = 'sale_start'; 10 | public static const SALE_FINISH:String = 'sale_finish'; 11 | 12 | public var id:int; 13 | 14 | public function AvatarSaleEvent(type:String, i:int=0, bubbles:Boolean = false, cancelable:Boolean = false) 15 | { 16 | log.writeLog(log.LV_INFO, "AvatarSaleEvent", "AvatarSaleEvent type",type); 17 | id = i 18 | super(type, bubbles, cancelable); 19 | } 20 | 21 | public override function toString():String { 22 | return formatToString("AvatarSaleEvent", "type", "id", "bubbles", "cancelable"); 23 | } 24 | 25 | } 26 | 27 | 28 | } -------------------------------------------------------------------------------- /app/client/lib/ULSingleton.as: -------------------------------------------------------------------------------- 1 | // Unlight 2 | // Copyright(c)2019 CPA This software is released under the MIT License. 3 | // http://opensource.org/licenses/mit-license.php 4 | 5 | package 6 | { 7 | public class ULSingleton 8 | { 9 | private static var __instance:ULSingleton; 10 | 11 | function ULSingleton(caller:Function=null):void 12 | { 13 | if( caller != createInstance ) throw new ArgumentError("Cannot user access constructor."); 14 | 15 | trace("create new instance."); 16 | } 17 | 18 | private static function createInstance():ULSingleton 19 | { 20 | return new ULSingleton(arguments.callee); 21 | } 22 | 23 | public static function get instance():ULSingleton 24 | { 25 | if( __instance == null ){ 26 | __instance = createInstance(); 27 | } 28 | return __instance; 29 | } 30 | } 31 | } 32 | --------------------------------------------------------------------------------