Torque3D Documentation / _generateds / afxAnimLock.cpp

afxAnimLock.cpp

Engine/source/afx/ce/afxAnimLock.cpp

More...

Public Defines

define
myOffset(field) (field, )

Public Functions

ConsoleDocClass(afxAnimLockData , "@brief A datablock that specifies an Animation Lock <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">effect.\n\n</a>" "Animation Lock is used <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> temporarily lock out user-controlled <a href="/coding/class/classplayer/">Player</a> actions, usually <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a0e48c1f64b558d03d870367324920354">while</a> an Animation Clip is " "concurrently playing. Animation Clips can already do this, but must lock out user actions <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> the entire clip length. " "Sometimes you only want <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> block user actions <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> short section of <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> longer playing animation, such as the part where " "the <a href="/coding/class/classplayer/">Player</a> is thrown into the air from an impact. With Animation Lock, you can set <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> specific timespan <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> when user " "actions are blocked, independent of any Animation Clip timing." "\<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">n\n</a>" "The target of an Animation Lock is the constraint <a href="/coding/file/pointer_8h/#pointer_8h_1adb82dfe18535e9a30aa97d275f82bd55">source</a> object specified by the posConstraint field of the enclosing effect " "wrapper. The target must be <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> Player, <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> subclass of Player, or an afxModel." "\<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">n\n</a>" "The timing of the Animation Lock is determined by the timing fields of the enclosing effect wrapper." "\<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">n\n</a>" "Locking behavior timing is set by fields of the enclosing effect wrapper, so <a href="/coding/class/classafxanimlockdata/">afxAnimLockData</a> does not require any fields. " " However, TorqueScript syntax disallows the declaration of an empty datablock. Therefore, it is recommended that you set " "<a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> dynamic field named 'priority' <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> zero in the body of the datablock as <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> workaround <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> this limitation." "\<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">n\n</a>" " @ingroup <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">afxEffects\n</a>" " @ingroup <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">AFX\n</a>" " @ingroup <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">Datablocks\n</a>" )

Detailed Description

Public Defines

myOffset(field) (field, )

Public Functions

ConsoleDocClass(afxAnimLockData , "@brief A datablock that specifies an Animation Lock <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">effect.\n\n</a>" "Animation Lock is used <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> temporarily lock out user-controlled <a href="/coding/class/classplayer/">Player</a> actions, usually <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a0e48c1f64b558d03d870367324920354">while</a> an Animation Clip is " "concurrently playing. Animation Clips can already do this, but must lock out user actions <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> the entire clip length. " "Sometimes you only want <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> block user actions <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> short section of <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> longer playing animation, such as the part where " "the <a href="/coding/class/classplayer/">Player</a> is thrown into the air from an impact. With Animation Lock, you can set <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> specific timespan <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> when user " "actions are blocked, independent of any Animation Clip timing." "\<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">n\n</a>" "The target of an Animation Lock is the constraint <a href="/coding/file/pointer_8h/#pointer_8h_1adb82dfe18535e9a30aa97d275f82bd55">source</a> object specified by the posConstraint field of the enclosing effect " "wrapper. The target must be <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> Player, <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> subclass of Player, or an afxModel." "\<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">n\n</a>" "The timing of the Animation Lock is determined by the timing fields of the enclosing effect wrapper." "\<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">n\n</a>" "Locking behavior timing is set by fields of the enclosing effect wrapper, so <a href="/coding/class/classafxanimlockdata/">afxAnimLockData</a> does not require any fields. " " However, TorqueScript syntax disallows the declaration of an empty datablock. Therefore, it is recommended that you set " "<a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> dynamic field named 'priority' <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> zero in the body of the datablock as <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> workaround <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> this limitation." "\<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">n\n</a>" " @ingroup <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">afxEffects\n</a>" " @ingroup <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">AFX\n</a>" " @ingroup <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">Datablocks\n</a>" )

IMPLEMENT_CO_DATABLOCK_V1(afxAnimLockData )

 1
 2
 3//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
 4// Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames
 5// Copyright (C) 2015 Faust Logic, Inc.
 6//
 7// Permission is hereby granted, free of charge, to any person obtaining a copy
 8// of this software and associated documentation files (the "Software"), to
 9// deal in the Software without restriction, including without limitation the
10// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11// sell copies of the Software, and to permit persons to whom the Software is
12// furnished to do so, subject to the following conditions:
13//
14// The above copyright notice and this permission notice shall be included in
15// all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23// IN THE SOFTWARE.
24//
25//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
26
27#include "afx/arcaneFX.h"
28
29#include "console/consoleTypes.h"
30#include "core/stream/bitStream.h"
31
32#include "afx/ce/afxAnimLock.h"
33
34//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
35// afxAnimLockData
36
37IMPLEMENT_CO_DATABLOCK_V1(afxAnimLockData);
38
39ConsoleDocClass( afxAnimLockData,
40   "@brief A datablock that specifies an Animation Lock effect.\n\n"
41
42   "Animation Lock is used to temporarily lock out user-controlled Player actions, usually while an Animation Clip is "
43   "concurrently playing. Animation Clips can already do this, but must lock out user actions for the entire clip length. "
44   "Sometimes you only want to block user actions for a short section of a longer playing animation, such as the part where "
45   "the Player is thrown into the air from an impact. With Animation Lock, you can set a specific timespan for when user "
46   "actions are blocked, independent of any Animation Clip timing."
47   "\n\n"
48
49   "The target of an Animation Lock is the constraint source object specified by the posConstraint field of the enclosing effect "
50   "wrapper. The target must be a Player, a subclass of Player, or an afxModel."
51   "\n\n"
52
53   "The timing of the Animation Lock is determined by the timing fields of the enclosing effect wrapper."
54   "\n\n"
55
56   "Locking behavior timing is set by fields of the enclosing effect wrapper, so afxAnimLockData does not require any fields. "
57   "However, TorqueScript syntax disallows the declaration of an empty datablock. Therefore, it is recommended that you set "
58   "a dynamic field named 'priority' to zero in the body of the datablock as a workaround to this limitation."
59   "\n\n"
60
61   "@ingroup afxEffects\n"
62   "@ingroup AFX\n"
63   "@ingroup Datablocks\n"
64);
65
66afxAnimLockData::afxAnimLockData()
67{
68}
69
70#define myOffset(field) Offset(field, afxAnimLockData)
71
72void afxAnimLockData::initPersistFields()
73{
74  Parent::initPersistFields();
75}
76
77bool afxAnimLockData::onAdd()
78{
79  if (Parent::onAdd() == false)
80    return false;
81
82  return true;
83}
84
85void afxAnimLockData::packData(BitStream* stream)
86{
87   Parent::packData(stream);
88}
89
90void afxAnimLockData::unpackData(BitStream* stream)
91{
92  Parent::unpackData(stream);
93}
94
95
96//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
97